From: David Rientjes Clear node_possible_map if numa_emulation() fails for some reason, such as a failed hash shift, but setup_node_range() has already set some fake nodes as online. Cc: Suresh Siddha Cc: Andi Kleen Cc: Eric Dumazet Cc: Christoph Lameter Signed-off-by: David Rientjes Signed-off-by: Andrew Morton --- arch/x86_64/mm/numa.c | 1 + 1 files changed, 1 insertion(+) diff -puN arch/x86_64/mm/numa.c~x86_64-set-node_possible_map-at-runtime-fix arch/x86_64/mm/numa.c --- a/arch/x86_64/mm/numa.c~x86_64-set-node_possible_map-at-runtime-fix +++ a/arch/x86_64/mm/numa.c @@ -500,6 +500,7 @@ void __init numa_initmem_init(unsigned l #ifdef CONFIG_NUMA_EMU if (cmdline && !numa_emulation(start_pfn, end_pfn)) return; + nodes_clear(node_possible_map); #endif #ifdef CONFIG_ACPI_NUMA _