Re: [PATCH v2 1/2] ACPI, APEI: Fix leaked resources

2016-03-08 Thread Chen, Gong
tel.com, linux-kernel@vger.kernel.org, Joshua Hunt > <joh...@akamai.com> > Subject: [PATCH v2 1/2] ACPI, APEI: Fix leaked resources > X-Mailer: git-send-email 1.7.9.5 > > We leak the NVS and arch resources (if used), in apei_resources_request. > They are allocated to make

Re: [PATCH v2 1/2] ACPI, APEI: Fix leaked resources

2016-03-08 Thread Chen, Gong
vger.kernel.org, Joshua Hunt > > Subject: [PATCH v2 1/2] ACPI, APEI: Fix leaked resources > X-Mailer: git-send-email 1.7.9.5 > > 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, >

[PATCH v2 1/2] ACPI, APEI: Fix leaked resources

2016-03-08 Thread Joshua Hunt
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 --- drivers/acpi/apei/apei-base.c |

[PATCH v2 1/2] ACPI, APEI: Fix leaked resources

2016-03-08 Thread Joshua Hunt
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 --- drivers/acpi/apei/apei-base.c |6 -- 1 file