mm: create a new system state and fix core_kernel_text()
[linux-2.6-microblaze.git] / kernel / extable.c
index b0ea5eb..290661f 100644 (file)
@@ -76,7 +76,7 @@ int notrace core_kernel_text(unsigned long addr)
            addr < (unsigned long)_etext)
                return 1;
 
-       if (system_state < SYSTEM_RUNNING &&
+       if (system_state < SYSTEM_FREEING_INITMEM &&
            init_kernel_text(addr))
                return 1;
        return 0;