Skip to content

Commit 4722b8f

Browse files
committed
m68k/mm: m54xx - Add missing initialization of max_pfn
If max_pfn is not initialized, the various /proc/kpage* files are empty, and selftests/vm/mlock2-tests will fail. max_pfn is also used by the block layer to calculate DMA masks. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Greg Ungerer <gerg@uclinux.org> Tested-by: Greg Ungerer <gerg@uclinux.org>
1 parent 79ae4fa commit 4722b8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/m68k/coldfire/m54xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static void __init mcf54xx_bootmem_alloc(void)
9898
memstart = PAGE_ALIGN(_ramstart);
9999
min_low_pfn = PFN_DOWN(_rambase);
100100
start_pfn = PFN_DOWN(memstart);
101-
max_low_pfn = PFN_DOWN(_ramend);
101+
max_pfn = max_low_pfn = PFN_DOWN(_ramend);
102102
high_memory = (void *)_ramend;
103103

104104
m68k_virt_to_node_shift = fls(_ramend - _rambase - 1) - 6;

0 commit comments

Comments
 (0)