]> git.proxmox.com Git - qemu.git/commitdiff
usb-ehci: drop assert()
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 30 Mar 2012 11:20:21 +0000 (13:20 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 17 Apr 2012 08:23:29 +0000 (10:23 +0200)
Not sure what the purpose of the assert() was, in any case it is bogous.
We can arrive there if transfer descriptors passed to us from the guest
failed to pass sanity checks, i.e. it is guest-triggerable.  We deal
with that case by resetting the host controller.  Everything is ok, no
need to throw a core dump here.

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

index e12f09870ceb37125020bb6851c31d167c0c641a..23631a47c9e727b89bbd941212553531a464c375 100644 (file)
@@ -2009,7 +2009,6 @@ static void ehci_advance_state(EHCIState *ehci,
             fprintf(stderr, "processing error - resetting ehci HC\n");
             ehci_reset(ehci);
             again = 0;
-            assert(0);
         }
     }
     while (again);