]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r338616:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 19 Sep 2018 08:09:59 +0000 (08:09 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 19 Sep 2018 08:09:59 +0000 (08:09 +0000)
commit7921873bc1ad3f1dc6fcf5c0daced65f4b745328
tree9d8158d757618b1bc20d415ab4fc8e4c6e0eebfe
parentc683c18298788eb517a6d10b7adc55678a7cdef5
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

git-svn-id: svn://svn.freebsd.org/base/stable/9@338790 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libusb/libusb10.c
lib/libusb/libusb10.h
lib/libusb/libusb10_io.c