kernel_samsung_a53x/arch/powerpc/platforms/powernv
Kunwu Chan 8b72a077b0 powerpc/powernv: Add a null pointer check to scom_debug_init_one()
[ Upstream commit 9a260f2dd827bbc82cc60eb4f4d8c22707d80742 ]

kasprintf() returns a pointer to dynamically allocated memory
which can be NULL upon failure.
Add a null pointer check, and release 'ent' to avoid memory leaks.

Fixes: bfd2f0d49aef ("powerpc/powernv: Get rid of old scom_controller abstraction")
Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231208085937.107210-1-chentao@kylinos.cn
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:12:20 +01:00
..
copy-paste.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
eeh-powernv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
idle.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
memtrace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
npu-dma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ocxl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-async.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-call.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-dump.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-elog.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-fadump.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-fadump.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-flash.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-hmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-imc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-irqchip.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-kmsg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-lpc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-memory-errors.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-msglog.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-nvram.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-power.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-powercap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-prd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-psr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-rtc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-secvar.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-sensor-groups.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-sensor.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-sysparam.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-tracepoints.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-wrappers.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
opal-xscom.c powerpc/powernv: Add a null pointer check to scom_debug_init_one() 2024-11-18 12:12:20 +01:00
opal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-cxl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-ioda-tce.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-ioda.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-sriov.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
powernv.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rng.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
setup.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
subcore-asm.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
subcore.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
subcore.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ultravisor.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vas-api.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vas-debug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vas-fault.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vas-trace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vas-window.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vas.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vas.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00