diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-05-05 23:30:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-05-05 23:30:58 -0400 |
commit | ee946c36be21dcfe044f1c432cd6c6a33682e244 (patch) | |
tree | fb32f8bf520d78e89be822fc1ffea796f36167c7 | |
parent | 8e95cb336d5293704d6b31f73639d029c7d2c252 (diff) | |
parent | 7fe3fa3b5ec8e75389cce4bf5d052a52e6198d59 (diff) |
Merge tag 'platform-drivers-x86-v4.17-2' of git://git.infradead.org/linux-platform-drivers-x86
Pull x86 platform driver fixes from Darren Hart:
- We missed a case in the Dell config dependencies resulting in a
possible bad configuration, resolve it by giving up on trying to keep
DELL_LAPTOP visible in the menu and make it depend on DELL_SMBIOS.
- Fix a null pointer dereference at module unload for the asus-wireless
driver.
* tag 'platform-drivers-x86-v4.17-2' of git://git.infradead.org/linux-platform-drivers-x86:
platform/x86: Kconfig: Fix dell-laptop dependency chain.
platform/x86: asus-wireless: Fix NULL pointer dereference
-rw-r--r-- | drivers/platform/x86/Kconfig | 2 | ||||
-rw-r--r-- | drivers/platform/x86/asus-wireless.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig index 39d06dd1f63a..bc309c5327ff 100644 --- a/drivers/platform/x86/Kconfig +++ b/drivers/platform/x86/Kconfig | |||
@@ -154,7 +154,7 @@ config DELL_LAPTOP | |||
154 | depends on ACPI_VIDEO || ACPI_VIDEO = n | 154 | depends on ACPI_VIDEO || ACPI_VIDEO = n |
155 | depends on RFKILL || RFKILL = n | 155 | depends on RFKILL || RFKILL = n |
156 | depends on SERIO_I8042 | 156 | depends on SERIO_I8042 |
157 | select DELL_SMBIOS | 157 | depends on DELL_SMBIOS |
158 | select POWER_SUPPLY | 158 | select POWER_SUPPLY |
159 | select LEDS_CLASS | 159 | select LEDS_CLASS |
160 | select NEW_LEDS | 160 | select NEW_LEDS |
diff --git a/drivers/platform/x86/asus-wireless.c b/drivers/platform/x86/asus-wireless.c index d4aeac3477f5..f086469ea740 100644 --- a/drivers/platform/x86/asus-wireless.c +++ b/drivers/platform/x86/asus-wireless.c | |||
@@ -178,8 +178,10 @@ static int asus_wireless_remove(struct acpi_device *adev) | |||
178 | { | 178 | { |
179 | struct asus_wireless_data *data = acpi_driver_data(adev); | 179 | struct asus_wireless_data *data = acpi_driver_data(adev); |
180 | 180 | ||
181 | if (data->wq) | 181 | if (data->wq) { |
182 | devm_led_classdev_unregister(&adev->dev, &data->led); | ||
182 | destroy_workqueue(data->wq); | 183 | destroy_workqueue(data->wq); |
184 | } | ||
183 | return 0; | 185 | return 0; |
184 | } | 186 | } |
185 | 187 | ||