Re: 2.5.69+bk: oops in apmd after waking up from suspend mode

Milton Miller
2003-05-20T16:21:40Z

Shouldn't this just use active_mm? Can somebody test?

by the way, I saw this with a 486 kernel compiled by
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)

on a Toshiba 2105 (aka 2100 +- sw) 486DX2/50, although I am not
at that computer presenlty to test.

milton

===== arch/i386/kernel/suspend.c 1.15 vs edited =====
--- 1.15/arch/i386/kernel/suspend.c Sat May 10 09:24:02 2003
+++ edited/arch/i386/kernel/suspend.c Tue May 20 11:26:18 2003
@@ -114,7 +114,7 @@
cpu_gdt_table[cpu][GDT_ENTRY_TSS].b &= 0xfffffdff;

load_TR_desc(); /* This does ltr */
- load_LDT(&current->mm->context); /* This does lldt */
+ load_LDT(&current->active_mm->context); /* This does lldt */

/*
* Now maybe reload the debug registers