patch-2.4.2 linux/fs/exec.c

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

diff -u --recursive --new-file v2.4.1/linux/fs/exec.c linux/fs/exec.c
@@ -395,7 +395,7 @@
 
 	mm = mm_alloc();
 	if (mm) {
-		struct mm_struct *active_mm = current->active_mm;
+		struct mm_struct *active_mm;
 
 		if (init_new_context(current, mm)) {
 			mmdrop(mm);
@@ -409,6 +409,7 @@
 		spin_unlock(&mmlist_lock);
 
 		task_lock(current);
+		active_mm = current->active_mm;
 		current->mm = mm;
 		current->active_mm = mm;
 		task_unlock(current);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)