powerpc: Oops in pseries_lmb_remove()
authorNathan Fontenot <nfont@austin.ibm.com>
Wed, 1 Oct 2008 09:44:02 +0000 (09:44 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 10 Oct 2008 04:55:17 +0000 (15:55 +1100)
commit9fd3f88cb67ac51bd5face8441472b91e042be67
tree4579e16f3d1f9504f8320ce973afc9996cd07e39
parent7c12d906f4ef690c65e60111375856640f63a545
powerpc: Oops in pseries_lmb_remove()

Testing hotplug memory remove has revealed that we can oops in
pseries_lmb_remove().  The incorrect shift causes a NULL pointer
dereference in the page_zone() inline routine.

I have only been able to reproduce the oops on kernels with large pages
enabled.

Tested on Power5 and Power6 with and without large pages enabled.

Signed-off-by: Nathan Fontenot <nfont@austin.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/hotplug-memory.c