patch-2.1.97 linux/arch/i386/kernel/ldt.c

Next file: linux/arch/i386/kernel/process.c
Previous file: linux/arch/i386/kernel/bios32.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.96/linux/arch/i386/kernel/ldt.c linux/arch/i386/kernel/ldt.c
@@ -64,7 +64,7 @@
 	 */
 	if (!mm->segments) {
 		for (i=1 ; i<NR_TASKS ; i++) {
-			if (task[i]->mm == mm) {
+			if (task[i] == current) {
 				if (!(mm->segments = (void *) vmalloc(LDT_ENTRIES*LDT_ENTRY_SIZE)))
 					return -ENOMEM;
 				memset(mm->segments, 0, LDT_ENTRIES*LDT_ENTRY_SIZE);

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