From: Roel Kluin Date: Fri, 18 Sep 2009 02:26:04 +0000 (-0700) Subject: kref: double kref_put() in my_data_handler() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8f1ecc9fbc5b223e4f5d5bb8bcd6f5672c4bc4b6;p=linux-beck.git kref: double kref_put() in my_data_handler() The kref_put() already occurs after the out label Signed-off-by: Roel Kluin Signed-off-by: Randy Dunlap Signed-off-by: Linus Torvalds --- diff --git a/Documentation/kref.txt b/Documentation/kref.txt index 130b6e87aa7e..ae203f91ee9b 100644 --- a/Documentation/kref.txt +++ b/Documentation/kref.txt @@ -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; }