patch-2.3.10 linux/kernel/acct.c

Next file: linux/kernel/exit.c
Previous file: linux/kernel/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.9/linux/kernel/acct.c linux/kernel/acct.c
@@ -276,7 +276,7 @@
 	 */
 	if (!file)
 		return 0;
-	atomic_inc(&file->f_count);
+	get_file(file);
 	if (!check_free_space(file)) {
 		fput(file);
 		return 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)