diff options
author | Ronald Tschalär <ronald@innovation.ch> | 2018-10-01 04:53:13 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-10-08 08:41:35 +0200 |
commit | 757c968c442397f1249bb775a7c8c03842e3e0c7 (patch) | |
tree | 5dc9c6441bf396b22e125e8e901c9a4bd7598205 /drivers/acpi/osl.c | |
parent | ACPI / SBS: Fix GPE storm on recent MacBookPro's (diff) | |
download | linux-757c968c442397f1249bb775a7c8c03842e3e0c7.tar.xz linux-757c968c442397f1249bb775a7c8c03842e3e0c7.zip |
ACPI / SBS: Fix rare oops when removing modules
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>
Diffstat (limited to 'drivers/acpi/osl.c')
-rw-r--r-- | drivers/acpi/osl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 8df9abfa947b..9d139727f164 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -1129,6 +1129,7 @@ void acpi_os_wait_events_complete(void) flush_workqueue(kacpid_wq); flush_workqueue(kacpi_notify_wq); } +EXPORT_SYMBOL(acpi_os_wait_events_complete); struct acpi_hp_work { struct work_struct work; |