summaryrefslogtreecommitdiff
path: root/hw/usb/hcd-uhci.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-03-08 13:29:07 +0100
committerGerd Hoffmann <kraxel@redhat.com>2012-03-13 10:15:32 +0100
commit60f8afcb5d734b6e8a6ba6cb26254dc04e8d9f8d (patch)
treea6008b8ca2904e3474568cadf4e84cc0ccbea18d /hw/usb/hcd-uhci.c
parent16ce543ed14acc796768a732c9d3ea1288efde24 (diff)
downloadqemu-60f8afcb5d734b6e8a6ba6cb26254dc04e8d9f8d.tar.gz
uhci: fix uhci_async_cancel_all
It should also free all queues. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb/hcd-uhci.c')
-rw-r--r--hw/usb/hcd-uhci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c
index 476db1f099..416f7034b8 100644
--- a/hw/usb/hcd-uhci.c
+++ b/hw/usb/hcd-uhci.c
@@ -300,6 +300,7 @@ static void uhci_async_cancel_all(UHCIState *s)
uhci_async_unlink(curr);
uhci_async_cancel(curr);
}
+ uhci_queue_free(queue);
}
}