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

dcd_nrf5x: fix race condition #2782

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

rgrr
Copy link
Contributor

@rgrr rgrr commented Aug 29, 2024

Describe the PR
Order of calls in dcd_nrf5x.c in dcd_edpt_xfer was wrong, Wrong order led to a race condition which happened rarely.

Additional context
There was a lengthy discussion in #2778.

Thanks to @kasjer for his support solving this. He is also responsible for explanation what happened: #2778 (comment)

Closes #2778
Closes #2240

Copy link
Collaborator

@kasjer kasjer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@HiFiPhile HiFiPhile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you guys for taking time to track down this issue !

@HiFiPhile HiFiPhile merged commit ed0d587 into hathach:master Aug 29, 2024
96 of 97 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dcd_nrf5x: race condition again nRF5x: race condition in dcd_nrf5x.c
4 participants