From: Lv Zheng Date: Tue, 29 Oct 2013 01:29:40 +0000 (+0800) Subject: ACPICA: Fix possible memory leaks in the GPE handling. X-Git-Tag: v3.13-rc1~96^2~9^2~26 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=ab3b24807adabdc32f8a9d5d7d3902e1e744d139;p=~emulex%2Finfiniband.git ACPICA: Fix possible memory leaks in the GPE handling. This change fixes potential memory leaks in the error paths of the GPE handling code. Lv Zheng. Signed-off-by: Lv Zheng Signed-off-by: Bob Moore Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/acpica/evgpe.c b/drivers/acpi/acpica/evgpe.c index c8a1f7d5931..1979a256be3 100644 --- a/drivers/acpi/acpica/evgpe.c +++ b/drivers/acpi/acpica/evgpe.c @@ -522,6 +522,7 @@ static void ACPI_SYSTEM_XFACE acpi_ev_asynch_execute_gpe_method(void *context) status = acpi_ut_release_mutex(ACPI_MTX_EVENTS); if (ACPI_FAILURE(status)) { + ACPI_FREE(local_gpe_event_info); return_VOID; }