Commit fd98b342 authored by Bob Miller's avatar Bob Miller Committed by Linus Torvalds

[PATCH] 2.5.6-pre3 Fix small race in BSD accounting

Below is a patch to remove a small race in kernel/acct.c.
parent ef0de34d
......@@ -354,7 +354,7 @@ int acct_process(long exitcode)
file = acct_file;
get_file(file);
unlock_kernel();
do_acct_process(exitcode, acct_file);
do_acct_process(exitcode, file);
fput(file);
} else
unlock_kernel();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment