patch-1.3.24 linux/fs/exec.c
Next file: linux/fs/proc/array.c
Previous file: linux/fs/binfmt_elf.c
Back to the patch index
Back to the overall index
-  Lines: 18
-  Date:
Tue Sep  5 11:09:25 1995
-  Orig file: 
v1.3.23/linux/fs/exec.c
-  Orig date: 
Sun Sep  3 12:27:00 1995
diff -u --recursive --new-file v1.3.23/linux/fs/exec.c linux/fs/exec.c
@@ -305,7 +305,7 @@
 
 	mpnt = (struct vm_area_struct *)kmalloc(sizeof(*mpnt), GFP_KERNEL);
 	if (mpnt) {
-		mpnt->vm_task = current;
+		mpnt->vm_mm = current->mm;
 		mpnt->vm_start = PAGE_MASK & (unsigned long) p;
 		mpnt->vm_end = STACK_TOP;
 		mpnt->vm_page_prot = PAGE_COPY;
@@ -542,7 +542,7 @@
 	current->comm[i] = '\0';
 
 	/* Release all of the old mmap stuff. */
-	exit_mmap(current);
+	exit_mmap(current->mm);
 
 	flush_thread();
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this