linux/drivers/usb/class
Heitor Alves de Siqueira ca9d2ee02a usb: usbtmc: reject interrupt endpoints with small wMaxPacketSize
commit 121d2f682b upstream.

The USB488 subclass specification requires interrupt wMaxPacketSize to
be 0x02, unless the device sends vendor-specific notifications.
Endpoints that advertise less than 2 bytes for wMaxPacketSize are
unlikely to work with the current driver, as URBs will not have enough
space for interrupt headers. Considering that any notification URBs will
be ignored by the driver, reject these endpoints early during probe.

Fixes: 041370cce8 ("USB: usbtmc: refactor endpoint retrieval")
Cc: stable <stable@kernel.org>
Suggested-by: Michal Pecio <michal.pecio@gmail.com>
Signed-off-by: Heitor Alves de Siqueira <halves@igalia.com>
Link: https://patch.msgid.link/20260505-usbtmc-iin-size-v3-2-a36113f62db7@igalia.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2026-06-19 13:33:30 +02:00
..
cdc-acm.c cdc-acm: new quirk for EPSON HMD 2026-04-18 10:33:34 +02:00
cdc-acm.h cdc-acm: new quirk for EPSON HMD 2026-04-18 10:33:34 +02:00
cdc-wdm.c usb: class: cdc-wdm: fix reordering issue in read code path 2026-04-18 10:33:14 +02:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile USB: add SPDX identifiers to all remaining Makefiles 2017-11-07 15:53:48 +01:00
usblp.c usb: usblp: fix uninitialized heap leak via LPGETSTATUS ioctl 2026-06-01 17:35:20 +02:00
usbtmc.c usb: usbtmc: reject interrupt endpoints with small wMaxPacketSize 2026-06-19 13:33:30 +02:00