patch-2.1.43 linux/fs/binfmt_elf.c

Next file: linux/fs/binfmt_misc.c
Previous file: linux/fs/binfmt_aout.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.42/linux/fs/binfmt_elf.c linux/fs/binfmt_elf.c
@@ -681,7 +681,7 @@
 
 #ifndef VM_STACK_FLAGS
 	current->executable = bprm->inode;
-	bprm->inode->i_count++;
+	atomic_inc(&bprm->inode->i_count);
 #endif
 #ifdef LOW_ELF_STACK
 	current->start_stack = bprm->p = elf_stack - 4;
@@ -887,6 +887,7 @@
  */
 static int dump_write(struct file *file, const void *addr, int nr)
 {
+	file->f_inode->i_status |= ST_MODIFIED;
 	return file->f_op->write(file->f_inode, file, addr, nr) == nr;
 }
 

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