]> git.proxmox.com Git - qemu.git/commitdiff
xhci: stop on errors
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 17 Jan 2012 12:25:13 +0000 (13:25 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 10 Feb 2012 11:16:30 +0000 (12:16 +0100)
When some error happened we'll have to stop processing the endpoint.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb-xhci.c

index 5e618f0db2a5812c13a990cbf42330f1cb6ff1c0..7682126e938c8fa3eef07284b3431c31efe65c4b 100644 (file)
@@ -1721,10 +1721,14 @@ static void xhci_kick_ep(XHCIState *xhci, unsigned int slotid, unsigned int epid
             }
         }
 
+        if (epctx->state == EP_HALTED) {
+            DPRINTF("xhci: ep halted, stopping schedule\n");
+            break;
+        }
+
         /*
          * Qemu usb can't handle multiple in-flight xfers.
-         * Also xfers might be finished here already,
-         * possibly with an error.  Stop here for now.
+         * Stop here for now.
          */
         break;
     }