patch-2.1.109 linux/kernel/fork.c

Next file: linux/kernel/kmod.c
Previous file: linux/include/net/p8022trcall.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.108/linux/kernel/fork.c linux/kernel/fork.c
@@ -308,6 +308,10 @@
 
 	if (clone_flags & CLONE_VM) {
 		mmget(current->mm);
+		/*
+		 * Set up the LDT descriptor for the clone task.
+		 */
+		copy_segments(nr, tsk, NULL);
 		SET_PAGE_DIR(tsk, current->mm->pgd);
 		return 0;
 	}

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