linux/drivers/hid/usbhid
Benjamin Tissoires bb719f86be HID: usbhid: paper over wrong bNumDescriptor field
commit f28beb69c5 upstream.

Some faulty devices (ZWO EFWmini) have a wrong optional HID class
descriptor count compared to the provided length.

Given that we plainly ignore those optional descriptor, we can attempt
to fix the provided number so we do not lock out those devices.

Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Cc: Salvatore Bonaccorso <carnil@debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2026-01-23 11:18:42 +01:00
..
hid-core.c HID: usbhid: paper over wrong bNumDescriptor field 2026-01-23 11:18:42 +01:00
hid-pidff.c HID: pidff: PERMISSIVE_CONTROL quirk autodetection 2025-11-13 15:34:13 -05:00
hid-pidff.h HID: pidff: Use direction fix only for conditional effects 2025-11-13 15:34:13 -05:00
hiddev.c USB: make devnode() callback in usb_class_driver take a const * 2022-10-20 12:11:56 +02:00
Kconfig HID: Kconfig: Fix spelling mistake "Uninterruptable" -> "Uninterruptible" 2021-07-28 11:41:57 +02:00
Makefile HID: core: move the dynamic quirks handling in core 2017-11-21 11:14:48 +01:00
usbhid.h Revert "HID: usbhid: do not sleep when opening device" 2020-08-18 19:54:04 +02:00
usbkbd.c HID: usbkbd: Fix the bit shift number for LED_KANA 2025-05-29 11:03:04 +02:00
usbmouse.c HID: move from strlcpy with unused retval to strscpy 2022-08-25 11:44:27 +02:00