]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
HID: usbhid: paper over wrong bNumDescriptor field
authorBenjamin Tissoires <bentiss@kernel.org>
Mon, 15 Dec 2025 11:57:21 +0000 (12:57 +0100)
committerBenjamin Tissoires <bentiss@kernel.org>
Fri, 19 Dec 2025 10:50:19 +0000 (11:50 +0100)
commitf28beb69c51517aec7067dfb2074e7c751542384
tree8fff3178defdaa0764059a4bafc204cda85ce51d
parentfde4ce068d1bccacf1e2d6a28697a3847f28e0a6
HID: usbhid: paper over wrong bNumDescriptor field

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>
drivers/hid/usbhid/hid-core.c