projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afa12e7
)
kref: double kref_put() in my_data_handler()
author
Roel Kluin
<roel.kluin@gmail.com>
Fri, 18 Sep 2009 02:26:04 +0000
(19:26 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 18 Sep 2009 16:48:52 +0000
(09:48 -0700)
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/kref.txt
patch
|
blob
|
blame
|
history
diff --git
a/Documentation/kref.txt
b/Documentation/kref.txt
index 130b6e87aa7ed04af9d3504acecfd7dc0e07ccfc..ae203f91ee9b8a80e54f98d76f09457a665cad0f 100644
(file)
--- 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;
}