diff options
Diffstat (limited to 'arch/x86_64')
-rw-r--r-- | arch/x86_64/mm/init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86_64/mm/init.c b/arch/x86_64/mm/init.c index 1ad5111aec38..efb6e845114e 100644 --- a/arch/x86_64/mm/init.c +++ b/arch/x86_64/mm/init.c | |||
@@ -79,6 +79,8 @@ void show_mem(void) | |||
79 | if (unlikely(i % MAX_ORDER_NR_PAGES == 0)) { | 79 | if (unlikely(i % MAX_ORDER_NR_PAGES == 0)) { |
80 | touch_nmi_watchdog(); | 80 | touch_nmi_watchdog(); |
81 | } | 81 | } |
82 | if (!pfn_valid(pgdat->node_start_pfn + i)) | ||
83 | continue; | ||
82 | page = pfn_to_page(pgdat->node_start_pfn + i); | 84 | page = pfn_to_page(pgdat->node_start_pfn + i); |
83 | total++; | 85 | total++; |
84 | if (PageReserved(page)) | 86 | if (PageReserved(page)) |