]> 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:21:23 +0000 (11:21 +0100)
commitf57953023f736a890076a8b7eda95c6b9478f55e
treed2aa1711c8ce279372ab1a0fc16b8e877fc4e863
parent0754d5caac719f649dbb73365741dcb90fbf793a
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