Revert "thermal/core: Fix memory leak in __thermal_cooling_device_register()"
This reverts commit 18530bedd2
which is
commit 98a160e898c0f4a979af9de3ab48b4b1d42d1dbb 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: Iba9a1c4019b19674fc3f9520b31e4e43be30c847
This commit is contained in:
@@ -1147,7 +1147,6 @@ __thermal_cooling_device_register(struct device_node *np,
|
|||||||
return cdev;
|
return cdev;
|
||||||
|
|
||||||
out_kfree_type:
|
out_kfree_type:
|
||||||
thermal_cooling_device_destroy_sysfs(cdev);
|
|
||||||
kfree(cdev->type);
|
kfree(cdev->type);
|
||||||
put_device(&cdev->device);
|
put_device(&cdev->device);
|
||||||
out_ida_remove:
|
out_ida_remove:
|
||||||
|
Reference in New Issue
Block a user