powerpc/kdump64: Don't reference freed memory as pacas
[pandora-kernel.git] / arch / powerpc / kernel / crash.c
index 5b5e1f0..c37ff6b 100644 (file)
@@ -170,7 +170,7 @@ static void crash_kexec_wait_realmode(int cpu)
        int i;
 
        msecs = 10000;
-       for (i=0; i < NR_CPUS && msecs > 0; i++) {
+       for (i=0; i < nr_cpu_ids && msecs > 0; i++) {
                if (i == cpu)
                        continue;