]> 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:13:51 +0000 (21:13 +0200)
commit1e68639f62f9d965cd46e6f5ca9c3dde0941d704
tree83d4672a28212695e40d11d7889ab562bfec531c
parentf2712c6c073c58d64863e452e7a75b413834a80a
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