From: Sébastien Szymanski Date: Thu, 2 Nov 2017 11:12:43 +0000 (+0100) Subject: HID: cp2112: add HIDRAW dependency X-Git-Tag: v4.19~2198^2~2^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cde3076bdc38bf436e517a379759a9092c6ffd4f;p=platform%2Fkernel%2Flinux-rpi.git 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 Acked-by: Benjamin Tissoires Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index d95c1ab..af061b5 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.