From b0531cc28cd5adc9832398e8fc768003fafeac33 Mon Sep 17 00:00:00 2001 From: Danny Auble <da@schedmd.com> Date: Tue, 13 Apr 2021 17:47:24 -0600 Subject: [PATCH] Continuation of e8b7ec47f9ce8 Coverity CID 220675 --- src/slurmd/slurmd/req.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slurmd/slurmd/req.c b/src/slurmd/slurmd/req.c index a70f9c2aafb..94e23ed1efb 100644 --- a/src/slurmd/slurmd/req.c +++ b/src/slurmd/slurmd/req.c @@ -1146,7 +1146,7 @@ static int _check_job_credential(launch_tasks_request_msg_t *req, uint16_t scale_for_mem; i = conf->cpus / (i_last_bit - i_first_bit); if (req->threads_per_core && - (req->threads_per_core != NO_VAL) && + (req->threads_per_core != NO_VAL16) && (req->threads_per_core < conf->threads)) scale_for_mem = req->threads_per_core; else -- GitLab