Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8049c53 authored by Ralf Baechle's avatar Ralf Baechle
Browse files

[MIPS] Convert reference to mem_map to pfn_to_page().



This was crashing the combination of highmem and sparsemem.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent a754f708
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -426,7 +426,7 @@ void __init mem_init(void)

#ifdef CONFIG_HIGHMEM
	for (tmp = highstart_pfn; tmp < highend_pfn; tmp++) {
		struct page *page = mem_map + tmp;
		struct page *page = pfn_to_page(tmp);

		if (!page_is_ram(tmp)) {
			SetPageReserved(page);