* [PATCH 1/3] docs: kref: double kref_put() in my_data_handler()
@ 2009-09-18 2:26 Randy Dunlap
0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2009-09-18 2:26 UTC (permalink / raw)
To: lkml, Linus Torvalds; +Cc: Roel Kluin
From: Roel Kluin <roel.kluin@gmail.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@gmail.com>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-09-18 2:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-18 2:26 [PATCH 1/3] docs: kref: double kref_put() in my_data_handler() Randy Dunlap
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.