diff options
-rw-r--r-- | arch/x86/mm/init_64.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index 7227a0a3f3a0..f7d80313ede5 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c | |||
@@ -1104,9 +1104,6 @@ vmemmap_populate(struct page *start_page, unsigned long size, int node) | |||
1104 | PAGE_KERNEL_LARGE); | 1104 | PAGE_KERNEL_LARGE); |
1105 | set_pmd(pmd, __pmd(pte_val(entry))); | 1105 | set_pmd(pmd, __pmd(pte_val(entry))); |
1106 | 1106 | ||
1107 | addr_end = addr + PMD_SIZE; | ||
1108 | p_end = p + PMD_SIZE; | ||
1109 | |||
1110 | /* check to see if we have contiguous blocks */ | 1107 | /* check to see if we have contiguous blocks */ |
1111 | if (p_end != p || node_start != node) { | 1108 | if (p_end != p || node_start != node) { |
1112 | if (p_start) | 1109 | if (p_start) |
@@ -1116,6 +1113,9 @@ vmemmap_populate(struct page *start_page, unsigned long size, int node) | |||
1116 | node_start = node; | 1113 | node_start = node; |
1117 | p_start = p; | 1114 | p_start = p; |
1118 | } | 1115 | } |
1116 | |||
1117 | addr_end = addr + PMD_SIZE; | ||
1118 | p_end = p + PMD_SIZE; | ||
1119 | } else | 1119 | } else |
1120 | vmemmap_verify((pte_t *)pmd, node, addr, next); | 1120 | vmemmap_verify((pte_t *)pmd, node, addr, next); |
1121 | } | 1121 | } |