Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libusb: fix race condition on device close #189

Merged
merged 1 commit into from
Oct 14, 2020
Merged

libusb: fix race condition on device close #189

merged 1 commit into from
Oct 14, 2020

Conversation

Youw
Copy link
Member

@Youw Youw commented Sep 26, 2020

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.

Fixes: #142.

Signed-off-by: Ihor Dutchak ihor.youw@gmail.com

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.

Fixes: #142.

Signed-off-by: Ihor Dutchak <ihor.youw@gmail.com>
@Youw Youw requested a review from a team September 26, 2020 18:59
@Youw Youw added this to In progress in v0.10 Release Sep 26, 2020
@Youw Youw merged commit d2c3a98 into master Oct 14, 2020
v0.10 Release automation moved this from In progress to Done Oct 14, 2020
@Youw Youw deleted the libusb-hang branch October 14, 2020 15:43
Youw added a commit that referenced this pull request Nov 23, 2020
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.

Fixes: #142.

Signed-off-by: Ihor Dutchak <ihor.youw@gmail.com>
@mcuee mcuee added the libusb Related to libusb backend label Jul 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libusb Related to libusb backend
Projects
No open projects
v0.10 Release
  
Done
Development

Successfully merging this pull request may close these issues.

Linux: Hanging inside hid_close()
2 participants