powerpc/kdump64: Don't reference freed memory as pacas
authorMilton Miller <miltonm@bga.com>
Tue, 10 May 2011 19:28:41 +0000 (19:28 +0000)
committerSteve Conklin <sconklin@canonical.com>
Fri, 15 Jul 2011 17:20:47 +0000 (12:20 -0500)
commit323ffccc47175ba5fcea6a02b0e06d432bcbc7d8
tree50b2a27f345f7db3676fa6b1ea37e98592e7d752
parentcd5e7835c9090c3219f7a68cda09fc8a32124d0c
powerpc/kdump64: Don't reference freed memory as pacas

BugLink: http://bugs.launchpad.net/bugs/793702

commit bd9e5eefecb3d69018bb95796298019d309cbec8 upstream.

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>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/powerpc/kernel/crash.c