every iput() and namei() must be inside a transaction
This commit is contained in:
parent
020c8e2384
commit
2c56547272
6 changed files with 145 additions and 17 deletions
2
proc.c
2
proc.c
|
@ -186,7 +186,9 @@ exit(void)
|
|||
}
|
||||
}
|
||||
|
||||
begin_trans();
|
||||
iput(proc->cwd);
|
||||
commit_trans();
|
||||
proc->cwd = 0;
|
||||
|
||||
acquire(&ptable.lock);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue