kernel_samsung_a53x/arch/powerpc/mm
Kunwu Chan 6520d4115f powerpc/mm: Fix null-pointer dereference in pgtable_cache_add
[ Upstream commit f46c8a75263f97bda13c739ba1c90aced0d3b071 ]

kasprintf() returns a pointer to dynamically allocated memory
which can be NULL upon failure. Ensure the allocation was successful
by checking the pointer validity.

Suggested-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231204023223.2447523-1-chentao@kylinos.cn
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:13:07 +01:00
..
book3s32 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
book3s64 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kasan Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nohash Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ptdump Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
copro_fault.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dma-noncoherent.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drmem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fault.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
highmem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hugetlbpage.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
init-common.c powerpc/mm: Fix null-pointer dereference in pgtable_cache_add 2024-11-18 12:13:07 +01:00
init_32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
init_64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ioremap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ioremap_32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ioremap_64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
maccess.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mem.c powerpc/mm: Fix boot crash with FLATMEM 2024-11-18 10:58:47 +01:00
mmap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmu_context.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmu_decl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
numa.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pgtable-frag.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pgtable.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pgtable_32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pgtable_64.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
slice.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00