linux_dsm_epyc7002/arch/powerpc/mm/kasan
Christophe Leroy d132443a73 powerpc/kasan: Fix error detection on memory allocation
In case (k_start & PAGE_MASK) doesn't equal (kstart), 'va' will never be
NULL allthough 'block' is NULL

Check the return of memblock_alloc() directly instead of
the resulting address in the loop.

Fixes: 509cd3f2b4 ("powerpc/32: Simplify KASAN init")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/7cb8ca82042bfc45a5cfe726c921cd7e7eeb12a3.1589866984.git.christophe.leroy@csgroup.eu
2020-05-20 23:41:01 +10:00
..
kasan_init_32.c powerpc/kasan: Fix error detection on memory allocation 2020-05-20 23:41:01 +10:00
Makefile powerpc/kasan: add missing/lost Makefile 2019-05-06 20:21:34 +10:00