]> git.itanic.dy.fi Git - linux-stable/commit
ACPI: EC: Fix oops when removing custom query handlers
authorArmin Wolf <W_Armin@gmx.de>
Fri, 24 Mar 2023 20:26:27 +0000 (21:26 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 30 Mar 2023 17:01:05 +0000 (19:01 +0200)
commite5b492c6bb900fcf9722e05f4a10924410e170c1
tree83ef7fc1f47b921d0443a3890adc74fd80ffcc2f
parent28f7b85895fce996c0f34827a7623ef6a031e4f3
ACPI: EC: Fix oops when removing custom query handlers

When removing custom query handlers, the handler might still
be used inside the EC query workqueue, causing a kernel oops
if the module holding the callback function was already unloaded.

Fix this by flushing the EC query workqueue when removing
custom query handlers.

Tested on a Acer Travelmate 4002WLMi

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ec.c