Revert "thermal/core: Fix memory leak in the error path"
This reverts commit 54cdc10ac7
which is
commit d44616c6cc3e35eea03ecfe9040edfa2b486a059 upstream.
It breaks the Android kernel ABI and is not needed for Android devices,
so it is safe to revert for now. If it is determined that it is needed
in the future, it can be brought back in an abi-preserving way.
Bug: 161946584
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I83010322077db689f57ae26b2bc3775af944384f
This commit is contained in:
@@ -1155,7 +1155,6 @@ out_kfree_type:
|
|||||||
out_ida_remove:
|
out_ida_remove:
|
||||||
ida_simple_remove(&thermal_cdev_ida, id);
|
ida_simple_remove(&thermal_cdev_ida, id);
|
||||||
out_kfree_cdev:
|
out_kfree_cdev:
|
||||||
kfree(cdev);
|
|
||||||
return ERR_PTR(ret);
|
return ERR_PTR(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user