[PATCH] powerpc/pseries: boot failures on numa if no memory on node
authorMike Kravetz <kravetz@us.ibm.com>
Wed, 7 Dec 2005 21:07:23 +0000 (13:07 -0800)
committerPaul Mackerras <paulus@samba.org>
Thu, 8 Dec 2005 05:54:39 +0000 (16:54 +1100)
This bug exists in the current code and prevents machines from booting
with numa enabled if there is a node that does not contain memory.
Workaround is to boot with 'numa=off'.  Looks like a simple typo.

Signed-off-by: Mike Kravetz <kravetz@us.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/mm/numa.c

index f72cf87..ba7a305 100644 (file)
@@ -125,7 +125,7 @@ void __init get_region(unsigned int nid, unsigned long *start_pfn,
 
        /* We didnt find a matching region, return start/end as 0 */
        if (*start_pfn == -1UL)
-               start_pfn = 0;
+               *start_pfn = 0;
 }
 
 static inline void map_cpu_to_node(int cpu, int node)