]> 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>
Sat, 10 Jul 2021 19:10:10 +0000 (21:10 +0200)
commite50fd67784355030aedca8704223456c056fdeb4
tree0e5f5786ab89d92e0d0075f5abee6a468893050c
parent666abb0888d277e82c6468851e015798e9a7629f
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
Sponsored by: Mellanox Technologies // NVIDIA Networking

(cherry picked from commit 6847ea50196f1a685be408a24f01cb8d407da19c)
lib/libusb/libusb10.c
lib/libusb/libusb10_io.c
lib/libusb/libusb20.c