Skip to content

Commit

Permalink
[MIPS] Convert reference to mem_map to pfn_to_page().
Browse files Browse the repository at this point in the history
This was crashing the combination of highmem and sparsemem.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
ralfbaechle committed Nov 15, 2007
1 parent a754f70 commit a8049c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a8049c5

Please sign in to comment.