powerpc: Fix Oops in rtas_stop_self()
authorLi Zhong <zhong@linux.vnet.ibm.com>
Mon, 28 Apr 2014 00:29:51 +0000 (08:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 May 2014 11:32:49 +0000 (13:32 +0200)
commit6ae6e5072bc4ffcf51d8d78a55c11c6cbb076ae2
tree337a8dcb4ec80894051546fa62ca84942a174af9
parentcd0b55d10fc74e0fab137481fe23c04851f71735
powerpc: Fix Oops in rtas_stop_self()

commit 4fb8d027dca0236c811272d342cf185569d91311 upstream.

commit 41dd03a9 may cause Oops in rtas_stop_self().

The reason is that the rtas_args was moved into stack space. For a box
with more that 4GB RAM, the stack could easily be outside 32bit range,
but RTAS is 32bit.

So the patch moves rtas_args away from stack by adding static before
it.

Signed-off-by: Li Zhong <zhong@linux.vnet.ibm.com>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/pseries/hotplug-cpu.c