summaryrefslogtreecommitdiff
path: root/drivers/acpi/acpica
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2013-10-29 05:29:40 +0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-10-30 15:24:22 +0400
commitab3b24807adabdc32f8a9d5d7d3902e1e744d139 (patch)
tree2db3701bb7a630a656991bd2e7eb19755f2d3ba8 /drivers/acpi/acpica
parentbf4994aca7c62b62b0a85a28476ef3a69ea8970f (diff)
downloadlinux-ab3b24807adabdc32f8a9d5d7d3902e1e744d139.tar.xz
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 <lv.zheng@intel.com> Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica')
-rw-r--r--drivers/acpi/acpica/evgpe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/evgpe.c b/drivers/acpi/acpica/evgpe.c
index c8a1f7d5931f..1979a256be3b 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;
}