HomeFreeBSD

Improve handling of USB device re-open in the LibUSB v1.x API.

Description

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)

Details

Provenance
hselaskyAuthored on Jun 11 2021, 3:06 PM
Parents
rG666abb0888d2: one-true-awk: import 20210221 (1e4bc42c53a1) which fixes a number of bugs
Branches
Unknown
Tags
Unknown