kernel_samsung_a53x/arch/powerpc/platforms/powernv
Michael Ellerman 62519b10a4 powerpc/powernv: Free name on error in opal_event_init()
[ Upstream commit cf8989d20d64ad702a6210c11a0347ebf3852aa7 ]

In opal_event_init() if request_irq() fails name is not freed, leading
to a memory leak. The code only runs at boot time, there's no way for a
user to trigger it, so there's no security impact.

Fix the leak by freeing name in the error path.

Reported-by: 2639161967 <2639161967@qq.com>
Closes: https://lore.kernel.org/linuxppc-dev/87wmjp3wig.fsf@mail.lhotse
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://patch.msgid.link/20240920093520.67997-1-mpe@ellerman.id.au
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-30 02:33:27 +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 powerpc/powernv: Free name on error in opal_event_init() 2024-11-30 02:33:27 +01: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 powerpc/powernv: Add a null pointer check in opal_powercap_init() 2024-11-18 12:12:20 +01: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