summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/kasan/init_book3e_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/mm/kasan/init_book3e_64.c')
-rw-r--r--arch/powerpc/mm/kasan/init_book3e_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/kasan/init_book3e_64.c b/arch/powerpc/mm/kasan/init_book3e_64.c
index 11519e88dc..43c03b84ff 100644
--- a/arch/powerpc/mm/kasan/init_book3e_64.c
+++ b/arch/powerpc/mm/kasan/init_book3e_64.c
@@ -112,7 +112,7 @@ void __init kasan_init(void)
pte_t zero_pte = pfn_pte(virt_to_pfn(kasan_early_shadow_page), PAGE_KERNEL_RO);
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));
if (IS_ENABLED(CONFIG_KASAN_VMALLOC))
kasan_remove_zero_shadow((void *)VMALLOC_START, VMALLOC_SIZE);