Skip to content

Commit afadcd7

Browse files
Yinghai LuIngo Molnar
authored andcommitted
x86: fix nodemap_size according to nodeid bits
memnode.map is s16 array because of nodeid is 16 bit now. so need to increase the nodemap_size according to that bits. Signed-off-by: Yinghai Lu <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
1 parent 9198715 commit afadcd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/mm/numa_64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static int __init allocate_cachealigned_memnodemap(void)
9292

9393
pad = L1_CACHE_BYTES - 1;
9494
pad_addr = 0x8000;
95-
nodemap_size = pad + memnodemapsize;
95+
nodemap_size = pad + sizeof(s16) * memnodemapsize;
9696
nodemap_addr = find_e820_area(pad_addr, end_pfn<<PAGE_SHIFT,
9797
nodemap_size);
9898
if (nodemap_addr == -1UL) {

0 commit comments

Comments
 (0)