]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: usbtmc: reject interrupt endpoints with small wMaxPacketSize
authorHeitor Alves de Siqueira <halves@igalia.com>
Tue, 5 May 2026 18:56:04 +0000 (15:56 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 May 2026 08:36:13 +0000 (10:36 +0200)
commit121d2f682ba912b1427cddca7cf84840f41cc620
tree4f386da3eb4d962df35be6995c35383a03635e53
parent52f2ad3f7e5eb3b5908e1d685d4342519dc9cfcd
usb: usbtmc: reject interrupt endpoints with small wMaxPacketSize

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: 041370cce889 ("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>
drivers/usb/class/usbtmc.c