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

Mark Brown broonie at kernel.org
Fri Aug 21 17:52:31 UTC 2015


On Fri, Aug 21, 2015 at 10:41:50AM -0700, Mark Brown wrote:
> On Fri, Aug 21, 2015 at 10:30:17AM -0700, Dmitry Torokhov wrote:

> > They are also often wrapped into other objects. For example input
> > device might turn off regulators/clocks in it's close() method, which
> > is called as part of input_unregister_device(). If input device is
> > managed then that state change happens "some time later".

> Right, but my understanding is that the integration with devm with the
> object reference counting was intended to do the right thing.

More specifically: the managed operations are guaranteed to be run in
reverse order so so long as the resources used by the managed input
device are also managed we're supposed to be fine.
-------------- 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/20150821/f285fa3e/attachment.sig>


More information about the Ksummit-discuss mailing list