HID: check for valid USB device for many HID drivers
Many HID drivers assume that the HID device assigned to them is a USB device as that was the only way HID devices used to be able to be created in Linux. However, with the additional ways that HID devices can be created for many different bus types, that is no longer true, so properly check that we have a USB device associated with the HID device before allowing a driver that makes this assumption to claim it. Cc: Jiri Kosina <jikos@kernel.org> Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com> Cc: Michael Zaidman <michael.zaidman@gmail.com> Cc: Stefan Achatz <erazor_de@users.sourceforge.net> Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com> Cc: Alexandre Torgue <alexandre.torgue@foss.st.com> Cc: linux-input@vger.kernel.org Cc: stable@vger.kernel.org Signed-off-by:Greg Kroah-Hartman <gregkh@linuxfoundation.org> Tested-by:
Benjamin Tissoires <benjamin.tissoires@redhat.com> [bentiss: amended for thrustmater.c hunk to apply] Signed-off-by:
Benjamin Tissoires <benjamin.tissoires@redhat.com> Link: https://lore.kernel.org/r/20211201183503.2373082-3-gregkh@linuxfoundation.org
parent
720ac467
-
mentioned in commit 37a6a8d7
-
mentioned in commit 128074f1
-
mentioned in commit 462b6beb
-
mentioned in commit 10d0f0aa
-
mentioned in commit a7944962
-
mentioned in commit 93a2207c
-
mentioned in commit 641784eb
-
mentioned in commit 6ccda28d
-
mentioned in commit 8684d7ea
-
mentioned in commit 9c84904d
-
mentioned in commit 3110bc58
-
mentioned in commit 6fa4e299
Please register or sign in to comment