Skip to content

Commit e3ecf2f

Browse files
bjorn-rivospalmer-dabbelt
authored andcommitted
riscv: mm: Properly forward vmemmap_populate() altmap parameter
Make sure that the altmap parameter is properly passed on to vmemmap_populate_hugepages(). Reviewed-by: Alexandre Ghiti <[email protected]> Signed-off-by: Björn Töpel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 1613e60 commit e3ecf2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1438,7 +1438,7 @@ int __meminit vmemmap_populate(unsigned long start, unsigned long end, int node,
14381438
* memory hotplug, we are not able to update all the page tables with
14391439
* the new PMDs.
14401440
*/
1441-
return vmemmap_populate_hugepages(start, end, node, NULL);
1441+
return vmemmap_populate_hugepages(start, end, node, altmap);
14421442
}
14431443
#endif
14441444

0 commit comments

Comments
 (0)