mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
ACPI / APEI: ERST: Fixed leaked resources in erst_init
erst_init currently leaks resources allocated from its call to apei_resources_init(). The data allocated there gets copied into apei_resources_all and can be freed when we're done with it. Signed-off-by: Josh Hunt <[email protected]> Reviewed-by: Chen, Gong <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
e56c92565d
commit
3a03d126ec
1 changed files with 3 additions and 0 deletions
|
|
@ -1207,6 +1207,9 @@ static int __init erst_init(void)
|
|||
"Failed to allocate %lld bytes for persistent store error log.\n",
|
||||
erst_erange.size);
|
||||
|
||||
/* Cleanup ERST Resources */
|
||||
apei_resources_fini(&erst_resources);
|
||||
|
||||
return 0;
|
||||
|
||||
err_release_erange:
|
||||
|
|
|
|||
Loading…
Reference in a new issue