]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jan 2026 10:18:42 +0000 (11:18 +0100)
commitbb719f86be14b06c9640903586a9e244e5a8ce0d
treef67511615242ec10881cbe11240a3aca8225102c
parent36c627d3a2ba6333585b9884583ba62434507c26
HID: usbhid: paper over wrong bNumDescriptor field

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