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
|
@ -84,7 +84,6 @@ int my_data_handler(void)
|
||||||
task = kthread_run(more_data_handling, data, "more_data_handling");
|
task = kthread_run(more_data_handling, data, "more_data_handling");
|
||||||
if (task == ERR_PTR(-ENOMEM)) {
|
if (task == ERR_PTR(-ENOMEM)) {
|
||||||
rv = -ENOMEM;
|
rv = -ENOMEM;
|
||||||
kref_put(&data->refcount, data_release);
|
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user