diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 6903b695ebaef81ef890f4b5e41c749d89dce2e1..5d013526bd0a035a4816067bc12867f81e4e8e19 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -1273,7 +1273,7 @@ int __meminit early_pfn_to_nid(unsigned long pfn) spin_lock(&early_pfn_lock); nid = __early_pfn_to_nid(pfn, &early_pfnnid_cache); if (nid < 0) - nid = 0; + nid = first_online_node; spin_unlock(&early_pfn_lock); return nid;