aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/crash.c
diff options
context:
space:
mode:
authorMilton Miller <miltonm@bga.com>2011-05-10 15:28:41 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-05-19 00:30:44 -0400
commitbd9e5eefecb3d69018bb95796298019d309cbec8 (patch)
tree77bb886d4c3db1a561f629bf73e43dfaf1d379e3 /arch/powerpc/kernel/crash.c
parent768d18ad6d5e600d911f9499ca287d6986d8d81b (diff)
powerpc/kdump64: Don't reference freed memory as pacas
Starting with 1426d5a3bd07589534286375998c0c8c6fdc5260 (powerpc: Dynamically allocate pacas) the space for pacas beyond cpu_possible is freed, but we failed to update the loop in crash.c. Since c1854e00727f50f7ac99e98d26ece04c087ef785 (powerpc: Set nr_cpu_ids early and use it to free PACAs) the number of pacas allocated is always nr_cpu_ids. Signed-off-by: Milton Miller <miltonm@bga.com> Cc: <stable@kernel.org> # .34.x Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/crash.c')
-rw-r--r--arch/powerpc/kernel/crash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/crash.c b/arch/powerpc/kernel/crash.c
index 21f2c781ded1..4e6ee944495a 100644
--- a/arch/powerpc/kernel/crash.c
+++ b/arch/powerpc/kernel/crash.c
@@ -236,7 +236,7 @@ static void crash_kexec_wait_realmode(int cpu)
236 int i; 236 int i;
237 237
238 msecs = 10000; 238 msecs = 10000;
239 for (i=0; i < NR_CPUS && msecs > 0; i++) { 239 for (i=0; i < nr_cpu_ids && msecs > 0; i++) {
240 if (i == cpu) 240 if (i == cpu)
241 continue; 241 continue;
242 242