Fix AVDTP endpoint resource leak by clearing the in_use flag on strea…#923
Merged
Conversation
…m close and abort commands.
zxzxwu
reviewed
May 11, 2026
zxzxwu
approved these changes
May 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix an AVDTP endpoint resource leak where the
in_use flagwas not cleared if a stream was closed or aborted before the RTP channel was established. Previously, this caused the endpoint to remain permanently locked, improperly rejecting subsequent SetConfiguration attempts with a SEP_IN_USE error. This patch ensures local_endpoint.in_use is properly reset to 0 when transitioning directly to the IDLE state. Additionally, it wires up the missing local endpoint event trigger for Abort commands to properly notify application listeners.