diff options
author | Ed Maste <emaste@freebsd.org> | 2013-05-07 10:06:12 -0400 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2013-06-11 17:34:11 -0500 |
commit | 9b5751ec09702ddf043bdd1f611880113d212c1a (patch) | |
tree | 49f3d17599a5b7cd80931e22ca74e068dc8dbd6b /hw | |
parent | 032ce1baacc332fd5c3d40fb9bb0a9cb1c48cbfb (diff) | |
download | qemu-9b5751ec09702ddf043bdd1f611880113d212c1a.zip qemu-9b5751ec09702ddf043bdd1f611880113d212c1a.tar.gz qemu-9b5751ec09702ddf043bdd1f611880113d212c1a.tar.bz2 |
host-libusb: Correct test for USB packet state
USB_RET_ASYNC is -6, so inflight was always false.
Signed-off-by: Ed Maste <emaste@freebsd.org>
Cc: qemu-stable@nongnu.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit 45ec267160307ce2ca7494d942589ba222b29479)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/usb/host-libusb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |