]> git.baikalelectronics.ru Git - kernel.git/commit
HID: cp2112: add HIDRAW dependency
authorSébastien Szymanski <sebastien.szymanski@armadeus.com>
Thu, 2 Nov 2017 11:12:43 +0000 (12:12 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 9 Nov 2017 11:44:51 +0000 (12:44 +0100)
commitcde3076bdc38bf436e517a379759a9092c6ffd4f
tree6a5d98c471bdbf6018d60eeb816b382bf4763624
parent654c192a72ffa7e415a9f58a4f4c5f4368b754e7
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>
drivers/hid/Kconfig