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

Next file: linux/arch/i386/math-emu/fpu_system.h
Previous file: linux/arch/i386/kernel/ldt.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.96/linux/arch/i386/kernel/process.c linux/arch/i386/kernel/process.c
@@ -488,7 +488,7 @@
 			memcpy(ldt, old_mm->segments, LDT_ENTRIES*LDT_ENTRY_SIZE);
 		}
 	}
-	set_ldt_desc(gdt+(nr<<1)+FIRST_LDT_ENTRY, ldt, LDT_ENTRIES);
+	set_ldt_desc(gdt+(nr<<1)+FIRST_LDT_ENTRY, ldt, ldt_size);
 }
 
 int copy_thread(int nr, unsigned long clone_flags, unsigned long esp,

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