]> git.baikalelectronics.ru Git - kernel.git/commit
docs: kref: Clarify the use of two kref_put() in example code
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Thu, 13 Feb 2020 12:53:11 +0000 (18:23 +0530)
committerJonathan Corbet <corbet@lwn.net>
Tue, 25 Feb 2020 10:39:10 +0000 (03:39 -0700)
commit4075bda75730f5bc5be5e0802b002023c9c7208a
tree657c4f117352dfcbeb379b0529d76fa6b8398398
parentac57e2a99c5fe9cab49e6c505fea52e3c6866814
docs: kref: Clarify the use of two kref_put() in example code

Eventhough the current documentation explains that the reference count
gets incremented by both kref_init() and kref_get(), it is often
misunderstood that only one instance of kref_put() is needed in the
example code. So let's clarify that a bit.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/kref.txt