diff options
author | Sébastien Szymanski <sebastien.szymanski@armadeus.com> | 2017-11-02 14:12:43 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-21 12:24:35 +0300 |
commit | 8c4738583b6858dccac3ef2ac7bea920a3a0cd8d (patch) | |
tree | 7d6d40eb2e3257f0cac0bb2fc36a84323c0b2d0d | |
parent | 9a9f503038b7a103bcdc3bb4447d6c94b0aaeadd (diff) | |
download | linux-8c4738583b6858dccac3ef2ac7bea920a3a0cd8d.tar.xz |
HID: cp2112: add HIDRAW dependency
commit cde3076bdc38bf436e517a379759a9092c6ffd4f upstream.
Otherwise, with HIDRAW=n, the probe function crashes because of null
dereference of hdev->hidraw.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-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 8b27211f6c50..b8093b3bf7c7 100644 --- a/drivers/hid/Kconfig +++ b/drivers/hid/Kconfig @@ -230,7 +230,7 @@ config HID_CMEDIA config HID_CP2112 tristate "Silicon Labs CP2112 HID USB-to-SMBus Bridge support" - depends on USB_HID && I2C && GPIOLIB + depends on USB_HID && HIDRAW && I2C && GPIOLIB select GPIOLIB_IRQCHIP ---help--- Support for Silicon Labs CP2112 HID USB to SMBus Master Bridge. |