PERFORCE change 151837 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Thu Oct 23 22:00:57 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=151837
Change 151837 by hselasky at hselasky_laptop001 on 2008/10/23 22:00:02
LibUSB01: Bug by bug compatibility.
Affected files ...
.. //depot/projects/usb/src/lib/libusb20/libusb20_compat01.c#3 edit
Differences ...
==== //depot/projects/usb/src/lib/libusb20/libusb20_compat01.c#3 (text+ko) ====
@@ -167,6 +167,13 @@
int err;
err = libusb20_dev_open(dev->dev, 16 * 2);
+ if (err == LIBUSB20_ERROR_BUSY) {
+ /*
+ * Workaround buggy USB applications which open the USB
+ * device multiple times:
+ */
+ return (dev->dev);
+ }
if (err)
return (NULL);
More information about the p4-projects
mailing list