diff --git a/sys/kern/subr_sleepqueue.c b/sys/kern/subr_sleepqueue.c index 033366574211..cc1fc8995d10 100644 --- a/sys/kern/subr_sleepqueue.c +++ b/sys/kern/subr_sleepqueue.c @@ -297,7 +297,7 @@ sleepq_add(void *wchan, struct lock_object *lock, const char *wmesg, int flags, if (sq == NULL) { #ifdef INVARIANTS int i; - for (i = 0; i < NR_SLEEP_QUEUEUS; i++) + for (i = 0; i < NR_SLEEPQS; i++) KASSERT(TAILQ_EMPTY(&sq->sq_blocked[i]), ("thread's sleep queue %d is not empty", i));