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

From: Chen, Gong
Date: Tue Mar 08 2016 - 20:16:18 EST


On Tue, Mar 08, 2016 at 10:52:11AM -0500, Joshua Hunt wrote:
> Date: Tue, 8 Mar 2016 10:52:11 -0500
> From: Joshua Hunt <johunt@xxxxxxxxxx>
> To: gong.chen@xxxxxxxxx, linux-acpi@xxxxxxxxxxxxxxx, rjw@xxxxxxxxxxxxx,
> lenb@xxxxxxxxxx, ying.huang@xxxxxxxxx
> Cc: tony.luck@xxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, Joshua Hunt
> <johunt@xxxxxxxxxx>
> 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,
> but they are never freed at the end of the function. Free them now.
>
> Signed-off-by: Josh Hunt <johunt@xxxxxxxxxx>
>
Reviewed-by: Chen, Gong <gong.chen@xxxxxxxxxxxxxxx>

Attachment: signature.asc
Description: Digital signature