]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ACPICA: Fix possible memory leaks in the GPE handling.
authorLv Zheng <lv.zheng@intel.com>
Tue, 29 Oct 2013 01:29:40 +0000 (09:29 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Oct 2013 11:24:22 +0000 (12:24 +0100)
This change fixes potential memory leaks in the error paths of the GPE
handling code. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/evgpe.c

index c8a1f7d5931f518b004cc8311d31e5ad8e5cdaeb..1979a256be3ba4287a1fe9f9b0a468568c7b3263 100644 (file)
@@ -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;
        }