]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: xhci: Remove skip_isoc_td()
authorMichal Pecio <michal.pecio@gmail.com>
Wed, 3 Jun 2026 09:11:21 +0000 (12:11 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jun 2026 17:23:28 +0000 (19:23 +0200)
commitd20405dcdfb616cbae5c3e17e790a969ea03469d
tree741153fce6253dd930121a532597a529b427da13
parentf232db53c265467293123ccc02cf52793bca9cdd
usb: xhci: Remove skip_isoc_td()

This function is pointless because usb_submit_urb() initializes all
isoc frame descriptors to -EXDEV and 0 length so that HCDs don't need
to do anything with transfers which were never executed.

Other HCDs rely on this (e.g. EHCI itd_complete()), so we can too.
This gets rid of a potentially dangereous function which could corrupt
memory if we weren't super careful to only call it on isoc URBs.

Also, set status to 0 rather than any random status determined by the
later TD which caused skipping. This status will be ignored anyway.

Signed-off-by: Michal Pecio <michal.pecio@gmail.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://patch.msgid.link/20260603091132.1110849-5-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c