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

fix(cdc_acm): Fix closing of already closed device #13

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

tore-espressif
Copy link
Collaborator

This bug was found out during esp-serial-flasher CDC operation.

In case the user does not track status of the CDC device and attempts to close the device from multiple places/threads the driver would crash

cc @DNedic

Copy link
Collaborator

@roma-jam roma-jam left a comment

Choose a reason for hiding this comment

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

For some reason this PR contain the same changes as in feature/cdc_func_deacriptors despite the fact that the target branch is the same 🤷
Otherwise, changes about closing already closed device LGTM.

@tore-espressif
Copy link
Collaborator Author

@roma-jam Thank you for the review!

For some reason this PR contain the same changes as in feature/cdc_func_deacriptors

I rebased feature/cdc_func_descriptors on master so that is why you see 2 commits. I'll fix before merging

@tore-espressif tore-espressif force-pushed the feature/cdc_func_descriptors branch from 1caec88 to f950437 Compare February 8, 2024 07:22
Base automatically changed from feature/cdc_func_descriptors to master February 8, 2024 07:43
@tore-espressif tore-espressif merged commit 1af1c0c into master Feb 8, 2024
11 checks passed
@tore-espressif tore-espressif deleted the fix/cdc_acm_close branch February 8, 2024 08:09
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.

2 participants