Skip to content

Commit

Permalink
powerpc/kdump64: Don't reference freed memory as pacas
Browse files Browse the repository at this point in the history
Starting with 1426d5a (powerpc:
Dynamically allocate pacas) the space for pacas beyond cpu_possible
is freed, but we failed to update the loop in crash.c.

Since c1854e0 (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>
  • Loading branch information
Milton Miller authored and Benjamin Herrenschmidt committed May 19, 2011
1 parent 768d18a commit bd9e5ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/crash.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,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;

Expand Down

0 comments on commit bd9e5ee

Please sign in to comment.