| Submitter | Nathan Fontenot |
|---|---|
| Date | Oct. 13, 2008, 6:42 p.m. |
| Message ID | <48F39678.9000604@austin.ibm.com> |
| Download | mbox | patch |
| Permalink | /patch/4333/ |
| State | Accepted |
| Commit | 04badfd2936333a23e0fc233f31a760d0dc9424f |
| Delegated to: | Benjamin Herrenschmidt |
| Headers | show |
Comments
Patch
--- linux-2.6.orig/arch/powerpc/platforms/pseries/hotplug-memory.c 2008-10-01 14:20:08.000000000 -0500 +++ linux-2.6/arch/powerpc/platforms/pseries/hotplug-memory.c 2008-10-13 13:19:49.000000000 -0500 @@ -22,6 +22,12 @@ 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)); /*