Skip to content

Commit 0d82206

Browse files
committed
Revert "usb: xhci: prevent potential failure in handle_tx_event() for Transfer events without TRB"
This reverts commit 404eaf2.
1 parent 32fa0f4 commit 0d82206

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/usb/host/xhci-ring.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2677,17 +2677,16 @@ static int handle_tx_event(struct xhci_hcd *xhci,
26772677
else
26782678
xhci_handle_halted_endpoint(xhci, ep, NULL,
26792679
EP_SOFT_RESET);
2680-
break;
2680+
goto cleanup;
26812681
case COMP_RING_UNDERRUN:
26822682
case COMP_RING_OVERRUN:
26832683
case COMP_STOPPED_LENGTH_INVALID:
2684-
break;
2684+
goto cleanup;
26852685
default:
26862686
xhci_err(xhci, "ERROR Transfer event for unknown stream ring slot %u ep %u\n",
26872687
slot_id, ep_index);
26882688
goto err_out;
26892689
}
2690-
return 0;
26912690
}
26922691

26932692
/* Count current td numbers if ep->skip is set */

0 commit comments

Comments
 (0)