]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r338616:
authorhselasky <hselasky@FreeBSD.org>
Wed, 19 Sep 2018 07:56:19 +0000 (07:56 +0000)
committerhselasky <hselasky@FreeBSD.org>
Wed, 19 Sep 2018 07:56:19 +0000 (07:56 +0000)
commit6bebf456a43423450bbf3df0dd78664463b0d986
tree1ade938a960dc1a26e1ffcbf067cc063f7af0b4a
parente6f528b258c28c7046de0df6acfea82e27ace7de
MFC r338616:
Fix issues about cancelling USB transfers in LibUSB when the USB device has
been detached. When a USB device has been detached the kernel file handle
stops responding to commands. USB applications which continue to run after
the USB device has been detached, depend on LibUSB generated events to tear
down its pending USB transfers. Add code to handle the needed cleanup when
processing the USB transfer(s) fails and prevent new USB transfer(s) from
being submitted.

Found by: Ludovic Rousseau <ludovic.rousseau+freebsd@gmail.com>
PR: 231076
Sponsored by: Mellanox Technologies
lib/libusb/libusb10.c
lib/libusb/libusb10.h
lib/libusb/libusb10_io.c