This commit is contained in:
Robert Morris 2020-11-03 16:35:20 -05:00
parent 8d4fbc6e2a
commit 7dea4b93c8

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);