Files
linux/drivers/acpi
Ronald Tschalär 4b9d1ab711 ACPI / SBS: Fix rare oops when removing modules
[ Upstream commit 757c968c44 ]

There was a small race when removing the sbshc module where
smbus_alarm() had queued acpi_smbus_callback() for deferred execution
but it hadn't been run yet, so that when it did run hc had been freed
and the module unloaded, resulting in an invalid paging request.

A similar race existed when removing the sbs module with regards to
acpi_sbs_callback() (which is called from acpi_smbus_callback()).

We therefore need to ensure no callbacks are pending or executing before
the cleanups are done and the modules are removed.

Signed-off-by: Ronald Tschalär <ronald@innovation.ch>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-24 08:23:19 +01:00
..
2019-05-14 19:18:42 +02:00
2017-08-24 03:38:25 +02:00
2016-10-10 02:20:43 +02:00
2017-08-07 14:28:51 +02:00