Skip to content

Commit

Permalink
kref: double kref_put() in my_data_handler()
Browse files Browse the repository at this point in the history
The kref_put() already occurs after the out label

Signed-off-by: Roel Kluin <[email protected]>
Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
RoelKluin authored and torvalds committed Sep 18, 2009
1 parent afa12e7 commit 8f1ecc9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Documentation/kref.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8f1ecc9

Please sign in to comment.