aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2011-06-28 14:07:28 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2011-06-28 14:07:28 +0000
commita7e048a23f8c712b226b3c11ef0511f328ec358d (patch)
tree4fd9707422f1593d17d425903ce2d779eb115b07 /lib
parent877854f6679c98c4c669d214d5c174cb9a4d3f2f (diff)
downloadsrc-a7e048a23f8c712b226b3c11ef0511f328ec358d.tar.gz
src-a7e048a23f8c712b226b3c11ef0511f328ec358d.zip
LibUSB v1.0: Need at least one frame when doing the dummy open
else clear stall won't work in that case.
Notes
Notes: svn path=/head/; revision=223642
Diffstat (limited to 'lib')
-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 fa50ea784dfb..737e6109aeee 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)