uhci: fix uhci_async_cancel_all
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 8 Mar 2012 12:29:07 +0000 (13:29 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 13 Mar 2012 09:15:32 +0000 (10:15 +0100)
It should also free all queues.

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

index 476db1f099c0ebdeae14bfcd926688d2e9eefd73..416f7034b8d46653b40d3272e8cd66a63b5a8bcf 100644 (file)
@@ -300,6 +300,7 @@ static void uhci_async_cancel_all(UHCIState *s)
             uhci_async_unlink(curr);
             uhci_async_cancel(curr);
         }
+        uhci_queue_free(queue);
     }
 }