patch-2.1.43 linux/fs/exec.c

Next file: linux/fs/ext2/balloc.c
Previous file: linux/fs/dquot.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.42/linux/fs/exec.c linux/fs/exec.c
@@ -68,6 +68,10 @@
 
 __initfunc(void binfmt_setup(void))
 {
+#ifdef CONFIG_BINFMT_MISC
+	init_misc_binfmt();
+#endif
+
 #ifdef CONFIG_BINFMT_ELF
 	init_elf_binfmt();
 #endif
@@ -154,7 +158,7 @@
 			}
 		}
 		current->files->fd[fd] = f;
-		inode->i_count++;
+		atomic_inc(&inode->i_count);
 	}
 	return fd;
 }

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