diff options
-rw-r--r-- | mm/memory_hotplug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 4f5df61d6016..46b489cacdd8 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c | |||
@@ -194,7 +194,7 @@ void register_page_bootmem_info_node(struct pglist_data *pgdat) | |||
194 | 194 | ||
195 | zone = &pgdat->node_zones[0]; | 195 | zone = &pgdat->node_zones[0]; |
196 | for (; zone < pgdat->node_zones + MAX_NR_ZONES - 1; zone++) { | 196 | for (; zone < pgdat->node_zones + MAX_NR_ZONES - 1; zone++) { |
197 | if (zone->wait_table) { | 197 | if (zone_is_initialized(zone)) { |
198 | nr_pages = zone->wait_table_hash_nr_entries | 198 | nr_pages = zone->wait_table_hash_nr_entries |
199 | * sizeof(wait_queue_head_t); | 199 | * sizeof(wait_queue_head_t); |
200 | nr_pages = PAGE_ALIGN(nr_pages) >> PAGE_SHIFT; | 200 | nr_pages = PAGE_ALIGN(nr_pages) >> PAGE_SHIFT; |