]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
uhci: cancel on schedule stop.
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 8 Mar 2012 12:37:52 +0000 (13:37 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 13 Mar 2012 09:15:32 +0000 (10:15 +0100)
Cancel any in-flight transaction when the guest stops the uhci schedule.

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

index 416f7034b8d46653b40d3272e8cd66a63b5a8bcf..5177e33c375eebf264a3a736997e0cf484abe04c 100644 (file)
@@ -1126,6 +1126,7 @@ static void uhci_frame_timer(void *opaque)
     if (!(s->cmd & UHCI_CMD_RS)) {
         /* Full stop */
         qemu_del_timer(s->frame_timer);
+        uhci_async_cancel_all(s);
         /* set hchalted bit in status - UHCI11D 2.1.2 */
         s->status |= UHCI_STS_HCHALTED;