aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorJosh Hunt <johunt@akamai.com>2016-03-08 10:52:12 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-03-10 18:14:16 -0500
commit3a03d126ece4388d05937090a87bade560117751 (patch)
treeac9b38e99dece5efbce5cb1bc8a4bb9d9a582bca /drivers/acpi
parente56c92565dfe2c8de203f42f7d5237d14784b93d (diff)
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 <johunt@akamai.com> Reviewed-by: Chen, Gong <gong.chen@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/apei/erst.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/acpi/apei/erst.c b/drivers/acpi/apei/erst.c
index 6e6bc1059301..006c3894c6ea 100644
--- a/drivers/acpi/apei/erst.c
+++ b/drivers/acpi/apei/erst.c
@@ -1207,6 +1207,9 @@ static int __init erst_init(void)
1207 "Failed to allocate %lld bytes for persistent store error log.\n", 1207 "Failed to allocate %lld bytes for persistent store error log.\n",
1208 erst_erange.size); 1208 erst_erange.size);
1209 1209
1210 /* Cleanup ERST Resources */
1211 apei_resources_fini(&erst_resources);
1212
1210 return 0; 1213 return 0;
1211 1214
1212err_release_erange: 1215err_release_erange: