patch-2.1.104 linux/fs/exec.c
Next file: linux/fs/fcntl.c
Previous file: linux/fs/dquot.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Thu May 21 14:21:31 1998
-  Orig file: 
v2.1.103/linux/fs/exec.c
-  Orig date: 
Thu May  7 22:51:53 1998
diff -u --recursive --new-file v2.1.103/linux/fs/exec.c linux/fs/exec.c
@@ -428,6 +428,8 @@
 	 * Failure ... restore the prior mm_struct.
 	 */
 fail_restore:
+	/* The pgd belongs to the parent ... don't free it! */
+	mm->pgd = NULL;
 	current->mm = old_mm;
 	mmput(mm);
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov