summaryrefslogtreecommitdiffstats
path: root/lib/libusb
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2011-06-28 14:07:28 +0000
committerhselasky <hselasky@FreeBSD.org>2011-06-28 14:07:28 +0000
commitb1a34d6c3bddb3524356c692c71ec72458df5d2f (patch)
tree4fd9707422f1593d17d425903ce2d779eb115b07 /lib/libusb
parente20cfd48ae526e42061074896408997f5095d5a3 (diff)
downloadFreeBSD-src-b1a34d6c3bddb3524356c692c71ec72458df5d2f.zip
FreeBSD-src-b1a34d6c3bddb3524356c692c71ec72458df5d2f.tar.gz
LibUSB v1.0: Need at least one frame when doing the dummy open
else clear stall won't work in that case.
Diffstat (limited to 'lib/libusb')
-rw-r--r--lib/libusb/libusb10.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libusb/libusb10.c b/lib/libusb/libusb10.c
index fa50ea7..737e610 100644
--- a/lib/libusb/libusb10.c
+++ b/lib/libusb/libusb10.c
@@ -636,7 +636,7 @@ libusb_clear_halt(struct libusb20_device *pdev, uint8_t endpoint)
return (LIBUSB_ERROR_INVALID_PARAM);
CTX_LOCK(dev->ctx);
- err = libusb20_tr_open(xfer, 0, 0, endpoint);
+ err = libusb20_tr_open(xfer, 0, 1, endpoint);
CTX_UNLOCK(dev->ctx);
if (err != 0 && err != LIBUSB20_ERROR_BUSY)
OpenPOWER on IntegriCloud