X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=mm%2Fmemory_hotplug.c;h=02159c755136ea0463f57a2a951f9cad223aceb1;hb=690b0cacb6dbbbcb06b76139ab65e1bf3f63e7f1;hp=9f646374e32f5ec7704b86ad653c2794037b830a;hpb=bc9bc72e2f9bb07384c00604d1a40d0b5f62be6c;p=karo-tx-linux.git diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 9f646374e32f..02159c755136 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -494,6 +494,12 @@ static pg_data_t __ref *hotadd_new_pgdat(int nid, u64 start) /* init node's zones as empty zones, we don't have any present pages.*/ free_area_init_node(nid, zones_size, start_pfn, zholes_size); + /* + * The node we allocated has no zone fallback lists. For avoiding + * to access not-initialized zonelist, build here. + */ + build_all_zonelists(NULL); + return pgdat; }