diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index 110ee7656b41a9b1ee27057604c923213700e06d..ec3b9e9f30f4fd2ae5ad9edc9951564889eae58a 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c @@ -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);