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
14e81b8302
commit
b0b9163a88
@ -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