diff options
Diffstat (limited to 'drivers/usb/host/xhci.c')
-rw-r--r-- | drivers/usb/host/xhci.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 1cd56417cbec..0c8deb9ed42d 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c | |||
@@ -3787,8 +3787,10 @@ static int xhci_setup_device(struct usb_hcd *hcd, struct usb_device *udev, | |||
3787 | 3787 | ||
3788 | mutex_lock(&xhci->mutex); | 3788 | mutex_lock(&xhci->mutex); |
3789 | 3789 | ||
3790 | if (xhci->xhc_state) /* dying, removing or halted */ | 3790 | if (xhci->xhc_state) { /* dying, removing or halted */ |
3791 | ret = -ESHUTDOWN; | ||
3791 | goto out; | 3792 | goto out; |
3793 | } | ||
3792 | 3794 | ||
3793 | if (!udev->slot_id) { | 3795 | if (!udev->slot_id) { |
3794 | xhci_dbg_trace(xhci, trace_xhci_dbg_address, | 3796 | xhci_dbg_trace(xhci, trace_xhci_dbg_address, |