patch-2.0.35 linux/fs/exec.c

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

diff -u --recursive --new-file v2.0.34/linux/fs/exec.c linux/fs/exec.c
@@ -398,6 +398,8 @@
 		old_mm = current->mm;
 		current->mm = mm;
 		if (new_page_tables(current)) {
+			/* The pgd belongs to the parent ... don't free it! */
+			mm->pgd = NULL;
 			current->mm = old_mm;
 			exit_mmap(mm);
 			kfree(mm);

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