diff options
| -rw-r--r-- | drivers/usb/host/xhci-ring.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index dd02402700d5..6bfbd80ec2b9 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c | |||
| @@ -869,8 +869,12 @@ remove_finished_td: | |||
| 869 | /* Otherwise ring the doorbell(s) to restart queued transfers */ | 869 | /* Otherwise ring the doorbell(s) to restart queued transfers */ |
| 870 | ring_doorbell_for_active_rings(xhci, slot_id, ep_index); | 870 | ring_doorbell_for_active_rings(xhci, slot_id, ep_index); |
| 871 | } | 871 | } |
| 872 | ep->stopped_td = NULL; | 872 | |
| 873 | ep->stopped_trb = NULL; | 873 | /* Clear stopped_td and stopped_trb if endpoint is not halted */ |
| 874 | if (!(ep->ep_state & EP_HALTED)) { | ||
| 875 | ep->stopped_td = NULL; | ||
| 876 | ep->stopped_trb = NULL; | ||
| 877 | } | ||
| 874 | 878 | ||
| 875 | /* | 879 | /* |
| 876 | * Drop the lock and complete the URBs in the cancelled TD list. | 880 | * Drop the lock and complete the URBs in the cancelled TD list. |
