projects
/
platform
/
upstream
/
libusb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae8e86c
)
OpenBSD: Correctly catch attempts to do isochronous OUT transfers
author
Peter Stuge
<peter@stuge.se>
Sun, 19 Feb 2012 04:32:10 +0000
(
05:32
+0100)
committer
Peter Stuge
<peter@stuge.se>
Sun, 19 Feb 2012 04:32:10 +0000
(
05:32
+0100)
LIBUSB_ENDPOINT_OUT is the value of the direction bit, which is 0 for
OUT transfers, so the previous condition could never evaluate to true.
libusb/os/openbsd_usb.c
patch
|
blob
|
history
diff --git
a/libusb/os/openbsd_usb.c
b/libusb/os/openbsd_usb.c
index 2b0feb195c79759cee31830cef1d9ddc8954c86a..8306b468f7de44aed499a67a66b0ba9d4b93e453 100644
(file)
--- a/
libusb/os/openbsd_usb.c
+++ b/
libusb/os/openbsd_usb.c
@@
-436,7
+436,7
@@
obsd_submit_transfer(struct usbi_transfer *itransfer)
err = _sync_control_transfer(itransfer);
break;
case LIBUSB_TRANSFER_TYPE_ISOCHRONOUS:
- if (
transfer->endpoint & LIBUSB_ENDPOINT_OUT
) {
+ if (
0 == transfer->endpoint & LIBUSB_ENDPOINT_IN
) {
/* Isochronous write is not supported */
err = LIBUSB_ERROR_NOT_SUPPORTED;
break;