Commit fd0f50db authored by Thomas Hellstrom's avatar Thomas Hellstrom Committed by Greg Kroah-Hartman

Revert "kref: double kref_put() in my_data_handler()"

This reverts commit 8f1ecc9f.

The correction is incorrect, see discussion at default avatarKrishnamRaju raju <>
Cc: Roel Kluin <>
Cc: Randy Dunlap <>
Cc: KrishnamRaju raju <>
Signed-off-by: default avatarThomas Hellstrom <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 35dbf4ef
......@@ -84,6 +84,7 @@ 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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment