OSDN Git Service

powerpc/pmac: Fix SMP kernels on pre-core99 UP machines
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 9 Dec 2011 04:06:18 +0000 (15:06 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Mar 2012 18:20:52 +0000 (11:20 -0700)
commit029a9375e40af22c2f75d7a15615d2c87731f366
treed738598480894a5c5e3a29eb4666b8c41c653eaa
parent8290924361675d411266b890ab3b5964dc8e7255
powerpc/pmac: Fix SMP kernels on pre-core99 UP machines

commit 78c5c68a4cf4329d17abfa469345ddf323d4fd62 upstream.

The code for "powersurge" SMP would kick in and cause a crash
at boot due to the lack of a NULL test.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
Reported-by: Adam Conrad <adconrad@ubuntu.com>
Tested-by: Adam Conrad <adconrad@ubuntu.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/powermac/smp.c