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

[cdcacm_autostart] set file descriptor to -1 after close() #23751

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

dakejahl
Copy link
Contributor

The fd needs to be set to -1 after calling close(), otherwise a loss of VBUS will kick the module back into the connecting state but will immediately pass the open() check since fd is still valid.

@AlexKlimaj AlexKlimaj merged commit 4e359f9 into PX4:main Sep 30, 2024
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants