Skip to content
Commit ef45e78f authored by Manivannan Sadhasivam's avatar Manivannan Sadhasivam Committed by Jonathan Corbet
Browse files

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: default avatarManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 021622df
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment