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
-  Lines: 9
-  Date:
Wed Apr 15 12:33:43 1998
-  Orig file: 
v2.1.96/linux/arch/i386/kernel/ldt.c
-  Orig date: 
Tue Apr 14 14:29:20 1998
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