[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4AB2EFBC.90500@oracle.com>
Date: Thu, 17 Sep 2009 19:26:04 -0700
From: Randy Dunlap <randy.dunlap@...cle.com>
To: lkml <linux-kernel@...r.kernel.org>,
Linus Torvalds <torvalds@...ux-foundation.org>
CC: Roel Kluin <roel.kluin@...il.com>
Subject: [PATCH 1/3] docs: kref: double kref_put() in my_data_handler()
From: Roel Kluin <roel.kluin@...il.com>
Subject: kref: double kref_put() in my_data_handler()
The kref_put() already occurs after the out label
Signed-off-by: Roel Kluin <roel.kluin@...il.com>
Signed-off-by: Randy Dunlap <randy.dunlap@...cle.com>
---
Documentation/kref.txt | 1 -
1 file changed, 1 deletion(-)
--- lnx-2631-rc7.orig/Documentation/kref.txt
+++ lnx-2631-rc7/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;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists