Don't use NULL (pointer) when we mean 0 (integer) for the number of ticks
in msleep.
This commit is contained in:
parent
124a5c5795
commit
55cdddc0d8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123737
@ -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…
Reference in New Issue
Block a user