Skip to content
Commit 0b7cdb0f authored by Christophe Leroy's avatar Christophe Leroy Committed by Paul Gortmaker
Browse files

powerpc/kasan: Fix kasan_remap_early_shadow_ro()



commit af92bad6 upstream.

At the moment kasan_remap_early_shadow_ro() does nothing, because
k_end is 0 and k_cur < 0 is always true.

Change the test to k_cur != k_end, as done in
kasan_init_shadow_page_tables()

Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
Fixes: cbd18991 ("powerpc/mm: Fix an Oops in kasan_mmu_init()")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/4e7b56865e01569058914c991143f5961b5d4719.1583507333.git.christophe.leroy@c-s.fr


Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent ef2e68ef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment