diff --git a/mm/kasan/init.c b/mm/kasan/init.c index 7dd63b736e6e..b8c6ec172bb2 100644 --- a/mm/kasan/init.c +++ b/mm/kasan/init.c @@ -492,7 +492,6 @@ int kasan_add_zero_shadow(void *start, unsigned long size) ret = kasan_populate_early_shadow(shadow_start, shadow_end); if (ret) - kasan_remove_zero_shadow(shadow_start, - size >> KASAN_SHADOW_SCALE_SHIFT); + kasan_remove_zero_shadow(start, size); return ret; }