mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
[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>
This commit is contained in:
parent
a754f70886
commit
a8049c53cd
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue