projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7563352
)
host-libusb: Correct test for USB packet state
author
Ed Maste
<emaste@freebsd.org>
Tue, 7 May 2013 14:06:12 +0000
(10:06 -0400)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 3 Jun 2013 05:17:12 +0000
(07:17 +0200)
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>
hw/usb/host-libusb.c
patch
|
blob
|
history
diff --git
a/hw/usb/host-libusb.c
b/hw/usb/host-libusb.c
index f3de4591fd875aa46d6b95148666624e5364cb0b..3a582c526dd2c2dcf66531f681da9f24bfc30504 100644
(file)
--- 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_
R
ET_ASYNC);
+ bool inflight = (r->p && r->p->state == USB_
PACK
ET_ASYNC);
if (inflight) {
r->p->status = USB_RET_NODEV;