FreeBSD Bugzilla – Attachment 197049 Details for
Bug 231322
libusb_bulk_transfer() does not fail (with LIBUSB_ERROR_NO_DEVICE) if the device is not more present
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Check the USB device is still present
patch.txt (text/plain), 640 bytes, created by
Ludovic Rousseau
on 2018-09-12 09:51:06 UTC
(
hide
)
Description:
Check the USB device is still present
Filename:
MIME Type:
Creator:
Ludovic Rousseau
Created:
2018-09-12 09:51:06 UTC
Size:
640 bytes
patch
obsolete
>Index: libusb10.c >=================================================================== >--- libusb10.c (revision 338454) >+++ libusb10.c (working copy) >@@ -1465,7 +1463,13 @@ > (libusb20_tr_get_priv_sc1(pxfer1) == sxfer)) { > err = LIBUSB_ERROR_BUSY; > } else { >+ struct libusb_device_handle *devh; > >+ devh = uxfer->dev_handle; >+ >+ if (libusb20_dev_check_connected(devh)) >+ goto end; >+ > /* set pending state */ > sxfer->state = LIBUSB_SUPER_XFER_ST_PEND; > >@@ -1479,6 +1483,7 @@ > err = 0; /* success */ > } > >+end: > CTX_UNLOCK(dev->ctx); > > DPRINTF(dev->ctx, LIBUSB_DEBUG_FUNCTION, "libusb_submit_transfer leave %d", err);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 231322
: 197049