소스 검색

[PATCH] powerpc/pseries: boot failures on numa if no memory on node

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>
Mike Kravetz 19 년 전
부모
커밋
6d91bb93e4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      arch/powerpc/mm/numa.c

+ 1 - 1
arch/powerpc/mm/numa.c

@@ -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 */
 	/* We didnt find a matching region, return start/end as 0 */
 	if (*start_pfn == -1UL)
 	if (*start_pfn == -1UL)
-		start_pfn = 0;
+		*start_pfn = 0;
 }
 }
 
 
 static inline void map_cpu_to_node(int cpu, int node)
 static inline void map_cpu_to_node(int cpu, int node)