Don't use NULL (pointer) when we mean 0 (integer) for the number of ticks
in msleep.
This commit is contained in:
parent
d739bab300
commit
0d11c5c3c4
@ -1769,7 +1769,7 @@ thread_userret(struct thread *td, struct trapframe *frame)
|
||||
break;
|
||||
mtx_unlock_spin(&sched_lock);
|
||||
if (msleep(&p->p_numthreads, &p->p_mtx, PPAUSE|PCATCH,
|
||||
"maxthreads", NULL)) {
|
||||
"maxthreads", 0)) {
|
||||
mtx_lock_spin(&sched_lock);
|
||||
break;
|
||||
} else {
|
||||
|
@ -1769,7 +1769,7 @@ thread_userret(struct thread *td, struct trapframe *frame)
|
||||
break;
|
||||
mtx_unlock_spin(&sched_lock);
|
||||
if (msleep(&p->p_numthreads, &p->p_mtx, PPAUSE|PCATCH,
|
||||
"maxthreads", NULL)) {
|
||||
"maxthreads", 0)) {
|
||||
mtx_lock_spin(&sched_lock);
|
||||
break;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user