docs: kref: double kref_put() in my_data_handler()
PATCH 1/3 docs: kref: double kref_put() in my_data_handler()
From: Roel Kluin <[email protected]>
Subject: kref: double kref_put() in my_data_handler()
The kref_put() already occurs after the out label
Signed-off-by Roel Kluin <[email protected]>
Signed-off-by Randy Dunlap <[email protected]>
--- Documentation/kref.txt | 1 - 1 file changed, 1 deletion(-)
Documentation/kref.txt +0 -1
@@ -84,7 +84,6 @@ int my_data_handler(void) task = kthread_run(more_data_handling, data, "more_data_handling"); if (task == ERR_PTR(-ENOMEM)) { rv = -ENOMEM; - kref_put(&data->refcount, data_release); goto out; }