linux/arch/powerpc/sysdev/xics
Kunwu Chan ee17eabe4c powerpc/xics: Check return value of kasprintf in icp_native_map_one_cpu
[ Upstream commit 45b1ba7e5d ]

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>
History 2024-09-04 13:23:23 +02:00
..
icp-hv.c powerpc: Add missing linux/{of.h,irqdomain.h} include directives 2021-06-10 13:09:16 +01:00
icp-native.c powerpc/xics: Check return value of kasprintf in icp_native_map_one_cpu 2024-09-04 13:23:23 +02:00
icp-opal.c powerpc/xics: fix refcount leak in icp_opal_init() 2022-06-09 10:22:43 +02:00
ics-native.c powerpc/xics: Rename the map handler in a check handler 2021-08-10 23:14:59 +10:00
ics-opal.c powerpc/xics: Drop unmask of MSIs at startup 2021-08-10 23:15:00 +10:00
ics-rtas.c Revert "powerpc/rtas: Implement reentrant rtas call" 2022-10-15 07:59:02 +02:00
Kconfig powerpc/xics: Add a native ICS backend for microwatt 2021-06-21 21:15:58 +10:00
Makefile powerpc/xics: Add a native ICS backend for microwatt 2021-06-21 21:15:58 +10:00
xics-common.c powerpc/xics: Set the IRQ chip data for the ICS native backend 2021-09-15 22:05:53 +10:00