Commit 72509ff6 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Bound check on TASK_QUEUE_END instead

parent 454107b7
......@@ -226,7 +226,7 @@ Pool_Task(struct pool *pp, struct pool_task *task, enum task_how how)
CHECK_OBJ_NOTNULL(pp, POOL_MAGIC);
AN(task);
AN(task->func);
assert(how <= TASK_QUEUE_VCA);
assert(how < TASK_QUEUE_END);
Lck_Lock(&pp->mtx);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment