Commit 3a03d126 authored by Josh Hunt's avatar Josh Hunt Committed by Rafael J. Wysocki

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: default avatarJosh Hunt <johunt@akamai.com>
Reviewed-by: default avatarChen, Gong <gong.chen@linux.intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent e56c9256
...@@ -1207,6 +1207,9 @@ static int __init erst_init(void) ...@@ -1207,6 +1207,9 @@ static int __init erst_init(void)
"Failed to allocate %lld bytes for persistent store error log.\n", "Failed to allocate %lld bytes for persistent store error log.\n",
erst_erange.size); erst_erange.size);
/* Cleanup ERST Resources */
apei_resources_fini(&erst_resources);
return 0; return 0;
err_release_erange: err_release_erange:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment