diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2020-03-06 18:09:40 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-03-25 04:09:27 +0300 |
commit | af92bad615be75c6c0d1b1c5b48178360250a187 (patch) | |
tree | 57320fbc9d62af23eb59c1267277fdf5a1ad7f87 /arch/powerpc/include | |
parent | eb4f8e259acc37b91b62ca57e0d3c8960c357843 (diff) | |
download | linux-af92bad615be75c6c0d1b1c5b48178360250a187.tar.xz |
powerpc/kasan: Fix kasan_remap_early_shadow_ro()
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: Christophe Leroy <christophe.leroy@c-s.fr>
Fixes: cbd18991e24f ("powerpc/mm: Fix an Oops in kasan_mmu_init()")
Cc: stable@vger.kernel.org
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/4e7b56865e01569058914c991143f5961b5d4719.1583507333.git.christophe.leroy@c-s.fr
Diffstat (limited to 'arch/powerpc/include')
0 files changed, 0 insertions, 0 deletions