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

Coverity model should know that KM_NOSLEEP means no sleeping #16263

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions contrib/coverity/model.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ spl_kmem_alloc(size_t sz, int fl, const char *func, int line)

__coverity_negative_sink__(sz);

if (condition1)
if (((fl & KM_NOSLEEP) != KM_NOSLEEP) && condition1)
__coverity_sleep__();

if (((fl & KM_NOSLEEP) != KM_NOSLEEP) || condition0) {
Expand All @@ -193,7 +193,7 @@ spl_kmem_zalloc(size_t sz, int fl, const char *func, int line)

__coverity_negative_sink__(sz);

if (condition1)
if (((fl & KM_NOSLEEP) != KM_NOSLEEP) && condition1)
__coverity_sleep__();

if (((fl & KM_NOSLEEP) != KM_NOSLEEP) || condition0) {
Expand Down Expand Up @@ -275,7 +275,7 @@ spl_vmem_alloc(size_t sz, int fl, const char *func, int line)

__coverity_negative_sink__(sz);

if (condition1)
if (((fl & KM_NOSLEEP) != KM_NOSLEEP) && condition1)
__coverity_sleep__();

if (((fl & KM_NOSLEEP) != KM_NOSLEEP) || condition0) {
Expand All @@ -294,7 +294,7 @@ spl_vmem_zalloc(size_t sz, int fl, const char *func, int line)
(void) func;
(void) line;

if (condition1)
if (((fl & KM_NOSLEEP) != KM_NOSLEEP) && condition1)
__coverity_sleep__();

if (((fl & KM_NOSLEEP) != KM_NOSLEEP) || condition0) {
Expand Down
Loading