From 8f1ecc9fbc5b223e4f5d5bb8bcd6f5672c4bc4b6 Mon Sep 17 00:00:00 2001 From: Roel Kluin Date: Thu, 17 Sep 2009 19:26:04 -0700 Subject: [PATCH] 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 --- Documentation/kref.txt | 1 - 1 file changed, 1 deletion(-) 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; } -- GitLab