]> git.proxmox.com Git - qemu.git/commitdiff
uhci: Fix double unlink
authorHans de Goede <hdegoede@redhat.com>
Sat, 17 Nov 2012 11:11:51 +0000 (12:11 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 21 Nov 2012 13:55:54 +0000 (14:55 +0100)
uhci_async_cancel() already does a uhci_async_unlink().

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

index 078be2ad6a0bf9939e86082c614b54a92d6d52a2..8e478030ad75f0c9f4c6387e39d4267b8c770520 100644 (file)
@@ -963,7 +963,6 @@ static void uhci_async_complete(USBPort *port, USBPacket *packet)
     UHCIState *s = async->queue->uhci;
 
     if (packet->status == USB_RET_REMOVE_FROM_QUEUE) {
-        uhci_async_unlink(async);
         uhci_async_cancel(async);
         return;
     }