[Ksummit-discuss] [TECH TOPIC] Fix devm_kzalloc, its users, or both

Mark Brown broonie at kernel.org
Sat Aug 1 10:57:43 UTC 2015


On Fri, Jul 31, 2015 at 12:41:24PM -0700, Dmitry Torokhov wrote:
> On Fri, Jul 31, 2015 at 11:40:39AM -0700, James Bottomley wrote:

> > Russell says, this looks to be an orthogonal problem to devm_kzalloc.

> Yes, it is except that devm_* is magical and people expect it to somehow
> release resources only at the right time.

Or alternatively it's a really easy to use pattern that eliminates a
large set of potential mistakes and it's therefore worth looking at when
considering how to solve other simlar problems :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.linuxfoundation.org/pipermail/ksummit-discuss/attachments/20150801/8fddd48e/attachment-0001.sig>


More information about the Ksummit-discuss mailing list