commit | 66dbd4f13589a2d0fac3125f79b0f67ad4b549dd | [log] [tgz] |
---|---|---|
author | Ozkan Sezer <sezeroz@gmail.com> | Tue Jan 19 19:50:10 2021 +0300 |
committer | Ozkan Sezer <sezeroz@gmail.com> | Tue Jan 19 19:50:10 2021 +0300 |
tree | 14c5439515f01b5263e7b6d00df383388f0638b8 | |
parent | 01c4bc6282583c6755500a80ca5fa5becc573d89 [diff] |
hidapi/libusb/hid.c: fix race condition on device close (bug #5484) From hidapi mainstream git: https://github.com/libusb/hidapi/issues/142 https://github.com/libusb/hidapi/commit/d2c3a9862eefe2d3f4db0f00c0238277bfb4e44b Read callback may fire itself on its own even after its been requested to stop and exactly before the calling code waits for its completion in indefinite loop. Explicitly preventing re-fireing the submission loop fixes the issue.