usb: xhci: fix duplicate stall handling in handle_tx_event()
authorNiklas Neronin <niklas.neronin@linux.intel.com>
Fri, 9 Aug 2024 12:44:08 +0000 (15:44 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Aug 2024 08:26:28 +0000 (10:26 +0200)
commit741b41b48faf41c0bcf3c26fbb3448b0fda4fc5d
treed0b4e03b3ceaa3f6accec92bbbefcd9a90e26a63
parentdcdb52d948f3a17ccd3fce757d9bd981d7c32039
usb: xhci: fix duplicate stall handling in handle_tx_event()

Stall handling is managed in the 'process_*' functions, which are called
right before the 'goto' stall handling code snippet. Thus, there should
be a return after the 'process_*' functions. Otherwise, the stall code may
run twice.

Fixes: 1b349f214ac7 ("usb: xhci: add 'goto' for halted endpoint check in handle_tx_event()")
Reported-by: Michal Pecio <michal.pecio@gmail.com>
Signed-off-by: Niklas Neronin <niklas.neronin@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20240809124408.505786-3-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c