Revert "thermal/core: Fix memory leak in __thermal_cooling_device_register()"
This reverts commit18530bedd2which is commit98a160e898upstream. 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:
parent
090d920be9
commit
361d75b4c1
1 changed files with 0 additions and 1 deletions
|
|
@ -1147,7 +1147,6 @@ __thermal_cooling_device_register(struct device_node *np,
|
|||
return cdev;
|
||||
|
||||
out_kfree_type:
|
||||
thermal_cooling_device_destroy_sysfs(cdev);
|
||||
kfree(cdev->type);
|
||||
put_device(&cdev->device);
|
||||
out_ida_remove:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue