aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/numa_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/mm/numa_64.c')
-rw-r--r--arch/x86/mm/numa_64.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/mm/numa_64.c b/arch/x86/mm/numa_64.c
index cccc01d8415c..7757d2214fab 100644
--- a/arch/x86/mm/numa_64.c
+++ b/arch/x86/mm/numa_64.c
@@ -414,7 +414,8 @@ static int __init numa_alloc_distance(void)
414 414
415 for_each_node_mask(i, nodes_parsed) 415 for_each_node_mask(i, nodes_parsed)
416 cnt = i; 416 cnt = i;
417 size = ++cnt * sizeof(numa_distance[0]); 417 cnt++;
418 size = cnt * cnt * sizeof(numa_distance[0]);
418 419
419 phys = memblock_find_in_range(0, (u64)max_pfn_mapped << PAGE_SHIFT, 420 phys = memblock_find_in_range(0, (u64)max_pfn_mapped << PAGE_SHIFT,
420 size, PAGE_SIZE); 421 size, PAGE_SIZE);