xhci: handle USB_RET_IOERROR
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 25 Jul 2013 11:12:35 +0000 (13:12 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 30 Jul 2013 08:26:19 +0000 (10:26 +0200)
https://bugzilla.redhat.com/show_bug.cgi?id=980377

Cc: qemu-stable@nongnu.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-xhci.c

index 58f311db0f97d3b3d4dca25a7daa08c323bfe534..7cbf8136965abca2386619ec4c01190881d773f3 100644 (file)
@@ -1741,6 +1741,7 @@ static int xhci_complete_packet(XHCITransfer *xfer)
     trace_usb_xhci_xfer_error(xfer, xfer->packet.status);
     switch (xfer->packet.status) {
     case USB_RET_NODEV:
+    case USB_RET_IOERROR:
         xfer->status = CC_USB_TRANSACTION_ERROR;
         xhci_xfer_report(xfer);
         xhci_stall_ep(xfer);