-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Remove extra _deselect to prevent possible hard fault #8587
Conversation
@ARMmbed/mbed-os-storage please review |
@deepikabhavnani Can you help on this review? |
@jarlamsa This should be part of the commit message to explain why we are removing it, please update |
@0xc0170 Do we have some length constraint for the commit message? |
Just stick to the usual open-source commit message guidelines: https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html Summary should be short, body can be as many paragraphs as you like. |
If read timeout happens, the _deselect will get called twice causing a hard fault happening when mutex is released without being locked. The SDBlockDevice::read is calling the _deselect in every case.
3caf9e2
to
36f1fa0
Compare
Thanks @kjbracey-arm, updated |
Never mind, I got confused between
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch.. Looks good to me 👍
Note: This PR is now a part of a rollup PR (#8663). No further work is needed here, as once that PR is merged, this PR will also be closed and marked as merged. If any more commits are made in this PR, this PR will remain open and have to go through CI on its own. |
Description
If read timeout happens, the _deselect will get called twice causing a hard fault happening when mutex is released without being locked.
The SDBlockDevice::read is calling the _deselect in every case.
Pull request type