[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/7] host-libusb: Correct test for USB packet state
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 2/7] host-libusb: Correct test for USB packet state |
Date: |
Mon, 3 Jun 2013 12:05:46 +0200 |
From: Ed Maste <address@hidden>
USB_RET_ASYNC is -6, so inflight was always false.
Signed-off-by: Ed Maste <address@hidden>
Cc: address@hidden
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/usb/host-libusb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/usb/host-libusb.c b/hw/usb/host-libusb.c
index f3de459..3a582c5 100644
--- a/hw/usb/host-libusb.c
+++ b/hw/usb/host-libusb.c
@@ -385,7 +385,7 @@ out:
static void usb_host_req_abort(USBHostRequest *r)
{
USBHostDevice *s = r->host;
- bool inflight = (r->p && r->p->state == USB_RET_ASYNC);
+ bool inflight = (r->p && r->p->state == USB_PACKET_ASYNC);
if (inflight) {
r->p->status = USB_RET_NODEV;
--
1.7.9.7
- [Qemu-devel] [PULL 0/7] usb patch queue, Gerd Hoffmann, 2013/06/03
- [Qemu-devel] [PATCH 4/7] xhci: add XHCISlot->addressed, Gerd Hoffmann, 2013/06/03
- [Qemu-devel] [PATCH 3/7] pci: add VMSTATE_MSIX, Gerd Hoffmann, 2013/06/03
- [Qemu-devel] [PATCH 5/7] xhci: add xhci_alloc_epctx, Gerd Hoffmann, 2013/06/03
- [Qemu-devel] [PATCH 7/7] xhci: add live migration support, Gerd Hoffmann, 2013/06/03
- [Qemu-devel] [PATCH 6/7] xhci: add xhci_init_epctx, Gerd Hoffmann, 2013/06/03
- [Qemu-devel] [PATCH 2/7] host-libusb: Correct test for USB packet state,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 1/7] Fix usage of USB_DEV_FLAG_IS_HOST flag., Gerd Hoffmann, 2013/06/03
- Re: [Qemu-devel] [PULL 0/7] usb patch queue, Anthony Liguori, 2013/06/17