patch-2.1.60 linux/arch/mips/kernel/irixelf.c

Next file: linux/arch/ppc/config.in
Previous file: linux/arch/mips/config.in
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.59/linux/arch/mips/kernel/irixelf.c linux/arch/mips/kernel/irixelf.c
@@ -683,9 +683,12 @@
 		}
 	}
 	
-	/* OK, This is the point of no return. */
-	flush_old_exec(bprm);
+	/* Flush all traces of the currently running executable */
+	retval = flush_old_exec(bprm);
+	if (retval)
+		return retval;
 
+	/* OK, This is the point of no return */
 	current->mm->end_data = 0;
 	current->mm->end_code = 0;
 	current->mm->start_mmap = ELF_START_MMAP;

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