]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
powerpc/pseries: Validate PFN in pseries_remove_lmb()
authorNathan Fontenot <nfont@austin.ibm.com>
Mon, 13 Oct 2008 08:42:00 +0000 (08:42 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 21 Oct 2008 04:17:47 +0000 (15:17 +1100)
commit04badfd2936333a23e0fc233f31a760d0dc9424f
treef2889549126aaef3e3bf80b52ccb74d0bbc8831e
parentc10c178a92b032ea3dd7259dcbbd1b9331c05c41
powerpc/pseries: Validate PFN in pseries_remove_lmb()

The pfn of the memory to be removed should be validated prior to
attempting to remove the memory.  In cases where the probe of a
memory section fails during hotplug add, the pfn for the lmb may
not be valid.

Signed-off-by: Badari Pulavarty <pbadari@us.ibm.com>
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