From: Hans de Goede Date: Fri, 6 Jul 2012 10:09:33 +0000 (+0200) Subject: usb-ehci: Fix an assert whenever isoc transfers are used X-Git-Tag: v1.1.2~61 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dbeb6c22d7a6d17f14fec38725bca63218ab7f22;p=thirdparty%2Fqemu.git usb-ehci: Fix an assert whenever isoc transfers are used hcd-ehci.c is missing an usb_packet_init() call for the ipacket UsbPacket it uses for isoc transfers, triggering an assert (taking the entire vm down) in usb_packet_setup as soon as any isoc transfers are done by a high speed USB device. Signed-off-by: Hans de Goede Signed-off-by: Gerd Hoffmann (cherry picked from commit 7341ea075c09258b98a1d0efc60efd402cbfc9b4) Signed-off-by: Michael Roth --- diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c index ce8b405b7db..41c9d84354f 100644 --- a/hw/usb/hcd-ehci.c +++ b/hw/usb/hcd-ehci.c @@ -2324,6 +2324,7 @@ static int usb_ehci_initfn(PCIDevice *dev) s->frame_timer = qemu_new_timer_ns(vm_clock, ehci_frame_timer, s); QTAILQ_INIT(&s->aqueues); QTAILQ_INIT(&s->pqueues); + usb_packet_init(&s->ipacket); qemu_register_reset(ehci_reset, s);