mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 03:06:10 +00:00
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>
This commit is contained in:
parent
afa12e72de
commit
8f1ecc9fbc
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue