kernel_samsung_a53x/arch/powerpc/platforms
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
..
4xx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8xx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
40x Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
44x powerpc/44x: select I2C for CURRITUCK 2024-11-18 12:12:19 +01:00
52xx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
82xx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
83xx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
85xx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
86xx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
512x Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amigaone Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cell file: Rename fcheck lookup_fd_rcu 2024-11-19 12:27:27 +01:00
chrp Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
embedded6xx powerpc/embedded6xx: Fix no previous prototype for avr_uart_send() etc. 2024-11-19 08:44:55 +01:00
maple Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pasemi Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
powermac Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
powernv powerpc/powernv: Free name on error in opal_event_init() 2024-11-30 02:33:27 +01:00
ps3 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pseries powerpc/pseries: Whitelist dtl slub object for copying to userspace 2024-11-19 14:19:50 +01:00
fsl_uli1575.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig.cputype Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00