diff options
author | Sébastien Szymanski <sebastien.szymanski@armadeus.com> | 2017-11-02 07:12:43 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2017-11-09 06:44:51 -0500 |
commit | cde3076bdc38bf436e517a379759a9092c6ffd4f (patch) | |
tree | 6a5d98c471bdbf6018d60eeb816b382bf4763624 | |
parent | 654c192a72ffa7e415a9f58a4f4c5f4368b754e7 (diff) |
HID: cp2112: add HIDRAW dependency
Otherwise, with HIDRAW=n, the probe function crashes because of null
dereference of hdev->hidraw.
Cc: stable@vger.kernel.org
Fixes: 42cb6b35b9e6 ("HID: cp2112: use proper hidraw name with minor number")
Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | drivers/hid/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index d95c1abbd4cc..af061b54c242 100644 --- a/drivers/hid/Kconfig +++ b/drivers/hid/Kconfig | |||
@@ -230,7 +230,7 @@ config HID_CMEDIA | |||
230 | 230 | ||
231 | config HID_CP2112 | 231 | config HID_CP2112 |
232 | tristate "Silicon Labs CP2112 HID USB-to-SMBus Bridge support" | 232 | tristate "Silicon Labs CP2112 HID USB-to-SMBus Bridge support" |
233 | depends on USB_HID && I2C && GPIOLIB | 233 | depends on USB_HID && HIDRAW && I2C && GPIOLIB |
234 | select GPIOLIB_IRQCHIP | 234 | select GPIOLIB_IRQCHIP |
235 | ---help--- | 235 | ---help--- |
236 | Support for Silicon Labs CP2112 HID USB to SMBus Master Bridge. | 236 | Support for Silicon Labs CP2112 HID USB to SMBus Master Bridge. |