mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
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: b2b18bb3
Signed-off-by: Lv Zheng <[email protected]>
Signed-off-by: David E. Box <[email protected]>
Signed-off-by: Bob Moore <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
b7be6883c7
commit
c539251e7c
1 changed files with 1 additions and 0 deletions
|
|
@ -896,6 +896,7 @@ acpi_remove_gpe_handler(acpi_handle gpe_device,
|
|||
/* Remove the handler */
|
||||
|
||||
handler = gpe_event_info->dispatch.handler;
|
||||
gpe_event_info->dispatch.handler = NULL;
|
||||
|
||||
/* Restore Method node (if any), set dispatch flags */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue