linux/arch/powerpc/platforms/powernv
Michael Ellerman cf8989d20d powerpc/powernv: Free name on error in opal_event_init()
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
2024-10-16 09:26:50 +11:00
..
copy-paste.h
eeh-powernv.c
idle.c
Kconfig
Makefile
memtrace.c
ocxl.c
opal-async.c
opal-call.c
opal-core.c
opal-dump.c
opal-elog.c
opal-fadump.c
opal-fadump.h
opal-flash.c
opal-hmi.c
opal-imc.c
opal-irqchip.c
opal-kmsg.c
opal-lpc.c
opal-memory-errors.c
opal-msglog.c
opal-nvram.c
opal-power.c
opal-powercap.c
opal-prd.c
opal-psr.c
opal-rtc.c
opal-secvar.c
opal-sensor-groups.c
opal-sensor.c
opal-sysparam.c
opal-tracepoints.c
opal-wrappers.S
opal-xscom.c
opal.c
pci-cxl.c
pci-ioda-tce.c
pci-ioda.c
pci-sriov.c
pci.c
pci.h
powernv.h
rng.c
setup.c
smp.c
subcore-asm.S
subcore.c
subcore.h
ultravisor.c
vas-debug.c
vas-fault.c
vas-trace.h
vas-window.c
vas.c
vas.h