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 :)