In cpu_sched_exit(), we must check vm_refcnt against 0, not 1, since
exit1() decrements the reference count before calling this function.
This commit is contained in:
parent
a4cb820edf
commit
c212d0a10a
@ -131,7 +131,7 @@ cpu_sched_exit(struct thread *td)
|
||||
|
||||
p = td->td_proc;
|
||||
vm = p->p_vmspace;
|
||||
if (vm->vm_refcnt > 1)
|
||||
if (vm->vm_refcnt > 0)
|
||||
return;
|
||||
SLIST_FOREACH(pc, &cpuhead, pc_allcpu) {
|
||||
if (pc->pc_vmspace == vm) {
|
||||
|
Loading…
Reference in New Issue
Block a user