aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2015-02-05 02:20:14 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-02-05 09:31:38 -0500
commitc539251e7c1537c8b3dcaa1c89f5393d04996013 (patch)
treedd68a2f7048c59808aa476bbd94e2c384f118c68 /drivers/acpi/acpica
parentb7be6883c7b0414f72c785b498d133194151cd8b (diff)
ACPICA: Events: Cleanup of resetting the GPE handler to NULL before removing
ACPICA commit b2b18bb38045404e253f10787b8a4ae6e94cdee6 This patch prevents acpi_remove_gpe_handler() from leaking the stale gpe_event_info->Dispatch.Handler to the caller to avoid possible NULL pointer references. Lv Zheng. Link: https://github.com/acpica/acpica/commit/b2b18bb3 Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: David E. Box <david.e.box@linux.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/evxface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/evxface.c b/drivers/acpi/acpica/evxface.c
index 55a58f3ec8df..b6b0c2341d29 100644
--- a/drivers/acpi/acpica/evxface.c
+++ b/drivers/acpi/acpica/evxface.c
@@ -896,6 +896,7 @@ acpi_remove_gpe_handler(acpi_handle gpe_device,
896 /* Remove the handler */ 896 /* Remove the handler */
897 897
898 handler = gpe_event_info->dispatch.handler; 898 handler = gpe_event_info->dispatch.handler;
899 gpe_event_info->dispatch.handler = NULL;
899 900
900 /* Restore Method node (if any), set dispatch flags */ 901 /* Restore Method node (if any), set dispatch flags */
901 902