]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r338616:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 19 Sep 2018 07:57:30 +0000 (07:57 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 19 Sep 2018 07:57:30 +0000 (07:57 +0000)
commita66db22c593a08ff51d4e39217b1b72502833a7c
treeeece126eb069a62adf5ddd68f4381220ed0c24c4
parent7c844f5a6b6461b830dc4d8ffa53d920bb300dfd
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/10@338789 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libusb/libusb10.c
lib/libusb/libusb10.h
lib/libusb/libusb10_io.c