]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r338993:
authorhselasky <hselasky@FreeBSD.org>
Fri, 5 Oct 2018 07:49:01 +0000 (07:49 +0000)
committerhselasky <hselasky@FreeBSD.org>
Fri, 5 Oct 2018 07:49:01 +0000 (07:49 +0000)
commit74fbf3900011ce81abd5a23e19ef4f5788d8e686
treeec213d75e74468fab7e4b4666ab06f647c4a9696
parent146f58ef4b4a87cc92f7d4b93c3aae3e9f4400c1
MFC r338993:
When multiple threads are involved receiving completion events in LibUSB
make sure there is always a master polling thread, by setting the "ctx_handler"
field in the context. Else the reception of completion events can stop.
This happens if event threads are created and destroyed during runtime.

Found by: Ludovic Rousseau <ludovic.rousseau+freebsd@gmail.com>
PR: 231742
Sponsored by: Mellanox Technologies
lib/libusb/libusb10_io.c