]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 28 Apr 2014 03:08:47 +0000 (13:08 +1000)
commitd8ffe9f33b715703f266386956a16b25a9d58d00
tree8bdad33ed82cad9b0947a9974f1d6b694d721cfd
parent8e4d632d82357c053451dccdd2852aa7816db750
powerpc: Fix Oops in rtas_stop_self()

commit a010b75a 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>
Cc: stable@vger.kernel.org # 3.14+
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/hotplug-cpu.c