Revert "thermal/core: Fix memory leak in the error path"
This reverts commit54cdc10ac7which is commitd44616c6ccupstream. 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:
parent
28fd8700b4
commit
2dc56158cb
1 changed files with 0 additions and 1 deletions
|
|
@ -1155,7 +1155,6 @@ out_kfree_type:
|
|||
out_ida_remove:
|
||||
ida_simple_remove(&thermal_cdev_ida, id);
|
||||
out_kfree_cdev:
|
||||
kfree(cdev);
|
||||
return ERR_PTR(ret);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue