[PATCH v2 0/2] usb: misc: usbio: fix fatal URB resubmission and probe maxpacket bounds

From: Elkin Cruz

Date: Fri Dec 04 2026 - 15:52:03 EST


Changes in v2:
- Patch 2/2: return -EIO instead of -ENODEV when endpoint maxpacket
sizes are too small in usbio_probe(), per Sakari Ailus. Unlike
-ENODEV/-ENXIO, -EIO causes the driver core to log the probe failure
via dev_err() on a malformed descriptor.
- Patch 1/2: unchanged from v1.

v1: https://lore.kernel.org/r/20261125222828.1452483-1-elkin@xxxxxxxxxx

I am trying out new Clang static analysis checks for kernel bug
classes, and they flagged this code as possibly buggy. The findings
were triaged/fixed and commit descriptions were drafted with help of AI,
then checked against linux-next (not runtime-tested on hardware).

Thanks,
Elkin

Elkin Cruz (2):
usb: misc: usbio: stop resubmitting bulk IN URB on fatal status
usb: misc: usbio: validate endpoint maxpacket sizes in usbio_probe()

drivers/usb/misc/usbio.c | 28 ++++++++++++++++++++++++----
1 file changed, 24 insertions(+), 4 deletions(-)

--
2.56.1.987.g2ec0ab4260-goog