浏览代码

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

This was crashing the combination of highmem and sparsemem.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle 17 年之前
父节点
当前提交
a8049c53cd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/mips/mm/init.c

+ 1 - 1
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);