[PATCH] Fix NULL pointer dereference in node_read_numastat()
[linux-2.6.git] / mm / memory_hotplug.c
index a918f77..1fe76d9 100644 (file)
@@ -130,6 +130,7 @@ int online_pages(unsigned long pfn, unsigned long nr_pages)
                onlined_pages++;
        }
        zone->present_pages += onlined_pages;
+       zone->zone_pgdat->node_present_pages += onlined_pages;
 
        setup_per_zone_pages_min();