-
Notifications
You must be signed in to change notification settings - Fork 398
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
prov/sockets: Fix coveritylocking issues #9927
Conversation
It's more useful if the commit header describe the problem/fix rather than a reference to a coverity report |
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.
I think the PR has a bug, please check my comment.
prov/sockets/src/sock_wait.c
Outdated
return 1; | ||
} |
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.
There is a pthread_mutex_lock(&cq->lock);
missing here, before the break
.
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.
fixed in latest push, thanks!
Fix coverity 407557's missing lock The cq error path should be considerably refactored. This lock is needed for the current implementation. Ideally we won't want this lock or check because it is optimizing the error case and slowing down the actual use case. Signed-off-by: Zach Dworkin <[email protected]>
Add lock around err_flag like other places in this file. Signed-off-by: Zach Dworkin <[email protected]>
Fix coverity missing lock Signed-off-by: Zach Dworkin <[email protected]>
Fix coverity missing lock Signed-off-by: Zach Dworkin <[email protected]>
bot:aws:retest |
No description provided.