diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/mm/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index 110ee7656b41..ec3b9e9f30f4 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c | |||
@@ -426,7 +426,7 @@ void __init mem_init(void) | |||
426 | 426 | ||
427 | #ifdef CONFIG_HIGHMEM | 427 | #ifdef CONFIG_HIGHMEM |
428 | for (tmp = highstart_pfn; tmp < highend_pfn; tmp++) { | 428 | for (tmp = highstart_pfn; tmp < highend_pfn; tmp++) { |
429 | struct page *page = mem_map + tmp; | 429 | struct page *page = pfn_to_page(tmp); |
430 | 430 | ||
431 | if (!page_is_ram(tmp)) { | 431 | if (!page_is_ram(tmp)) { |
432 | SetPageReserved(page); | 432 | SetPageReserved(page); |