kernel_samsung_a53x/arch/powerpc/sysdev/xics
Kunwu Chan ea4e67c43d powerpc/xics: Check return value of kasprintf in icp_native_map_one_cpu
[ Upstream commit 45b1ba7e5d1f6881050d558baf9bc74a2ae13930 ]

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

Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231122030651.3818-1-chentao@kylinos.cn
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:20:45 +01:00
..
icp-hv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
icp-native.c powerpc/xics: Check return value of kasprintf in icp_native_map_one_cpu 2024-11-23 23:20:45 +01:00
icp-opal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ics-opal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ics-rtas.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xics-common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00