-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
subsys/bluetooth/host/rfcomm.c: Missing unlock #11149
Comments
@jkanakkx any chance you could take a look at this? It seems you were the last one to touch these lines of code. |
I took a look at the rfcomm.c code, and I'm not completely certain if the proposed fix is the correct one. We'd really need a comment from the code author for this. @jkanakkx would you have a chance to look at this? |
Seems like a simple fix would be:
|
@galak it might seem so, but I'm not convinced after looking at the code that leaving the semaphore taken in this branch wasn't intentional. There are other places in rfcomm.c which will give it back as well. |
Agreed! Such cases are hard to script/automate in coccinelle with all nested functions |
@jkanakkx have you had a chance to look at this? It'd be good to get a comment from the original author (you) whether the semaphore handling is intentional or a bug. |
@jhedberg could you find a way to close this one? Thanks! |
@jhedberg ping. |
..or then just close it since it hasn't been definitely proven that it's a bug |
Found using coccinelle.
#11148
The text was updated successfully, but these errors were encountered: