1
linux/arch/powerpc/platforms
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
..
8xx Revert "powerpc/8xx: Always pin kernel text TLB" 2024-08-30 21:29:52 +10:00
44x
52xx powerpc: Stop using no_llseek 2024-09-05 22:30:14 +10:00
82xx
83xx
85xx powerpc: Switch back to struct platform_driver::remove() 2024-09-10 11:27:40 +10:00
86xx
512x powerpc: Switch back to struct platform_driver::remove() 2024-09-10 11:27:40 +10:00
amigaone
book3s
cell struct fd layout change (and conversion to accessor helpers) 2024-09-23 09:35:36 -07:00
chrp MIPS: Remove the obsoleted code for include/linux/mv643xx.h 2024-09-13 21:18:42 -07:00
embedded6xx
maple powerpc/maple: Remove obsoleted declaration for maple_calibrate_decr() 2024-08-30 21:05:21 +10:00
microwatt
pasemi powerpc: Switch back to struct platform_driver::remove() 2024-09-10 11:27:40 +10:00
powermac
powernv powerpc/powernv: Free name on error in opal_event_init() 2024-10-16 09:26:50 +11:00
ps3
pseries move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
fsl_uli1575.c
Kconfig
Kconfig.cputype powerpc/mm/64s: Restrict THP to Radix or HPT w/64K pages 2024-09-05 22:29:57 +10:00
Makefile