every iput() and namei() must be inside a transaction

This commit is contained in:
Robert Morris 2014-08-04 13:06:48 -04:00
parent 020c8e2384
commit 2c56547272
6 changed files with 145 additions and 17 deletions

2
proc.c
View file

@ -186,7 +186,9 @@ exit(void)
}
}
begin_trans();
iput(proc->cwd);
commit_trans();
proc->cwd = 0;
acquire(&ptable.lock);