patch-2.1.106 linux/fs/binfmt_aout.c

Next file: linux/fs/devpts/inode.c
Previous file: linux/drivers/zorro/zorro.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.105/linux/fs/binfmt_aout.c linux/fs/binfmt_aout.c
@@ -129,7 +129,7 @@
 	if (get_write_access(inode))
 		goto end_coredump;
 	if (init_private_file(&file, dentry, 3))
-		goto end_coredump;
+		goto end_coredump_write;
 	if (!file.f_op->write)
 		goto close_coredump;
 	has_dumped = 1;
@@ -213,6 +213,7 @@
 close_coredump:
 	if (file.f_op->release)
 		file.f_op->release(inode,&file);
+end_coredump_write:
 	put_write_access(inode);
 end_coredump:
 	set_fs(fs);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov