]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3e22779354066b895cfdbf5c6547121f65142db9
treef93e643da2d55c54b32410ecf9d589f8a87a8619
parentf4d3bdec7ff21d94a2938f7193f1292bbb986036
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