diff options
-rw-r--r-- | drivers/usb/host/xhci-ring.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 411da1fc7ae8..aaa2906f7b78 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c | |||
@@ -1414,6 +1414,12 @@ static void handle_cmd_completion(struct xhci_hcd *xhci, | |||
1414 | inc_deq(xhci, xhci->cmd_ring); | 1414 | inc_deq(xhci, xhci->cmd_ring); |
1415 | return; | 1415 | return; |
1416 | } | 1416 | } |
1417 | /* There is no command to handle if we get a stop event when the | ||
1418 | * command ring is empty, event->cmd_trb points to the next | ||
1419 | * unset command | ||
1420 | */ | ||
1421 | if (xhci->cmd_ring->dequeue == xhci->cmd_ring->enqueue) | ||
1422 | return; | ||
1417 | } | 1423 | } |
1418 | 1424 | ||
1419 | switch (le32_to_cpu(xhci->cmd_ring->dequeue->generic.field[3]) | 1425 | switch (le32_to_cpu(xhci->cmd_ring->dequeue->generic.field[3]) |