This commit is contained in:
Robert Morris 2020-11-03 16:35:20 -05:00 committed by Frans Kaashoek
parent 2875069973
commit 47323c97cf

View file

@ -401,7 +401,7 @@ wait(uint64 addr)
if(addr != 0 && copyout(p->pagetable, addr, (char *)&np->xstate,
sizeof(np->xstate)) < 0) {
release(&np->lock);
release(&p->lock);
release(&proc_tree_lock);
return -1;
}
freeproc(np);