diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-05-22 16:49:44 +0200 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-05-25 09:52:33 +0200 |
| commit | fe80251152fed5b185f795ef2cd9f7fe9c3162e0 (patch) | |
| tree | 8d53a62bcfb087c5cae9f0d9b4b81b96c6f82dc6 /include | |
| parent | e7ae89a0c97ce2b68b0983cd01eda67cf373517d (diff) | |
ACPI: button: Fix ACPI GPE handler leak during removal
Commit a7e23ec17fee ("ACPI: button: Install notifier for system events
as well") changed the ACPI notify handler type for ACPI buttons to
ACPI_ALL_NOTIFY, but it forgot to update acpi_button_remove() to reflect
that change. This leads to leaking the notify handler past driver
removal, which may cause a kernel crash to occur if ACPI notify on
the given device is triggered after removing the driver, and causes a
subsequent probe of the given device with the same driver to fail.
Address this by updating the acpi_remove_notify_handler() call in
acpi_button_remove() as appropriate.
Fixes: a7e23ec17fee ("ACPI: button: Install notifier for system events as well")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Cc: 6.15+ <stable@vger.kernel.org> # 6.15+
Link: https://patch.msgid.link/7954431.EvYhyI6sBW@rafael.j.wysocki
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
