ACPI / APEI: Fix leaked resources
authorJosh Hunt <johunt@akamai.com>
Tue, 8 Mar 2016 15:52:11 +0000 (10:52 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 Mar 2016 23:13:25 +0000 (00:13 +0100)
commite56c92565dfe2c8de203f42f7d5237d14784b93d
treef93e643da2d55c54b32410ecf9d589f8a87a8619
parentf6cede5b49e822ebc41a099fe41ab4989f64e2cb
ACPI / APEI: Fix leaked resources

We leak the NVS and arch resources (if used), in apei_resources_request.
They are allocated to make sure we exclude them from the APEI resources,
but they are never freed at the end of the function. Free them now.

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>
drivers/acpi/apei/apei-base.c