]> git.baikalelectronics.ru Git - kernel.git/commit
Documentation: devres: note checking needs when converting
authorNicholas Mc Guire <hofrat@osadl.org>
Sat, 1 Dec 2018 12:44:29 +0000 (13:44 +0100)
committerJonathan Corbet <corbet@lwn.net>
Thu, 6 Dec 2018 17:14:01 +0000 (10:14 -0700)
commit50f4e6131dfd469d9ac33952d7da77830c6d6f7f
treecee9e50d15b9da286c2c8e6337e1393502efaa71
parentd64c1a44a385d44dec7ee076e692308817c9745b
Documentation: devres: note checking needs when converting

There are a number of cases where conversions to devm_* API have been
done but developers forgot that this conversion may imply that return
values need to be checked for failure of internal resource handling
like allocation. While this should be clear, it does seem to be a
relatively common issue with API conversions or maybe "managed" is
being misunderstood ? So add a note to make the scope of "managed" clear.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/driver-model/devres.txt