summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/kasan/init_book3s_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/mm/kasan/init_book3s_64.c')
-rw-r--r--arch/powerpc/mm/kasan/init_book3s_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/kasan/init_book3s_64.c b/arch/powerpc/mm/kasan/init_book3s_64.c
index 9300d641cf..3fb5ce4f48 100644
--- a/arch/powerpc/mm/kasan/init_book3s_64.c
+++ b/arch/powerpc/mm/kasan/init_book3s_64.c
@@ -62,7 +62,7 @@ void __init kasan_init(void)
}
for_each_mem_range(i, &start, &end)
- kasan_init_phys_region((void *)start, (void *)end);
+ kasan_init_phys_region(phys_to_virt(start), phys_to_virt(end));
for (i = 0; i < PTRS_PER_PTE; i++)
__set_pte_at(&init_mm, (unsigned long)kasan_early_shadow_page,