]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/platforms/pseries/hotplug-memory.c
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux...
[linux-2.6-omap-h63xx.git] / arch / powerpc / platforms / pseries / hotplug-memory.c
index 140d02a5232af273b617a464fa08052438266262..a623ad256e9e500684cd972ccae1be3b4866c62e 100644 (file)
@@ -22,6 +22,12 @@ static int pseries_remove_lmb(unsigned long base, unsigned int lmb_size)
        int ret;
 
        start_pfn = base >> PAGE_SHIFT;
+
+       if (!pfn_valid(start_pfn)) {
+               lmb_remove(base, lmb_size);
+               return 0;
+       }
+
        zone = page_zone(pfn_to_page(start_pfn));
 
        /*