int ret;
if ((xhci->xhc_state & XHCI_STATE_DYING) ||
- (xhci->xhc_state & XHCI_STATE_HALTED)) {
+ (xhci->xhc_state & XHCI_STATE_HALTED) ||
+ (xhci->xhc_state & XHCI_STATE_REMOVING)) {
xhci_dbg(xhci, "xHCI dying or halted, can't queue_command\n");
return -ESHUTDOWN;
}