]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Improve handling of USB device re-open in the LibUSB v1.x API.
authorHans Petter Selasky <hselasky@FreeBSD.org>
Fri, 11 Jun 2021 15:06:10 +0000 (17:06 +0200)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Fri, 11 Jun 2021 15:06:44 +0000 (17:06 +0200)
commit6847ea50196f1a685be408a24f01cb8d407da19c
treee65befb53fe5ecc70cbfc830d33c64335203c25c
parentfa3746be4203fc9a3414afb21d964eec8bad74f8
Improve handling of USB device re-open in the LibUSB v1.x API.

Make sure the "device_is_gone" flag is cleared after every successful open,
so that the "device_is_gone" flag doesn't persist forever.

Found by: sergii.dmytruk@3mdeb.com
PR: 256296
MFC after: 1 week
Sponsored by: Mellanox Technologies // NVIDIA Networking
lib/libusb/libusb10.c
lib/libusb/libusb10_io.c
lib/libusb/libusb20.c