diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-09-17 19:26:04 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-18 09:48:52 -0700 |
commit | 8f1ecc9fbc5b223e4f5d5bb8bcd6f5672c4bc4b6 (patch) | |
tree | 50f408e2cc2ae27c6f24de740666fc57a8c880b6 | |
parent | afa12e72decb84cb8378ae2e66e51336e3c66962 (diff) | |
download | kernel_samsung_aries-8f1ecc9fbc5b223e4f5d5bb8bcd6f5672c4bc4b6.zip kernel_samsung_aries-8f1ecc9fbc5b223e4f5d5bb8bcd6f5672c4bc4b6.tar.gz kernel_samsung_aries-8f1ecc9fbc5b223e4f5d5bb8bcd6f5672c4bc4b6.tar.bz2 |
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | Documentation/kref.txt | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Documentation/kref.txt b/Documentation/kref.txt index 130b6e8..ae203f9 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; } |