summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mm/highmem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/highmem.c b/mm/highmem.c
index 4d6f96c20191..d999077431df 100644
--- a/mm/highmem.c
+++ b/mm/highmem.c
@@ -137,8 +137,7 @@ static void flush_all_zero_pkmaps(void)
* So no dangers, even with speculative execution.
*/
page = pte_page(pkmap_page_table[i]);
- pte_clear(&init_mm, (unsigned long)page_address(page),
- &pkmap_page_table[i]);
+ pte_clear(&init_mm, PKMAP_ADDR(i), &pkmap_page_table[i]);
set_page_address(page, NULL);
need_flush = 1;