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 powerpc/476: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-08-07 22:49:12 +10:00
52xx powerpc: Stop using no_llseek 2024-09-05 22:30:14 +10:00
82xx powerpc/82xx: Select FSL_SOC 2023-09-18 12:23:48 +10:00
83xx powerpc: rename SPRN_HID2 define to SPRN_HID2_750FX 2024-05-08 00:25:00 +10:00
85xx powerpc: Switch back to struct platform_driver::remove() 2024-09-10 11:27:40 +10:00
86xx powerpc/86xx: Drop unused CONFIG_MPC8610 2023-12-29 15:23:00 +11:00
512x powerpc: Switch back to struct platform_driver::remove() 2024-09-10 11:27:40 +10:00
amigaone powerpc/amigaone: Make several functions static 2024-03-07 00:13:28 +11:00
book3s powerpc/vas: Limit open window failure messages in log bufffer 2023-10-20 17:10:03 +11:00
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 powerpc/embedded6xx: Fix no previous prototype for avr_uart_send() etc. 2024-03-07 00:13:28 +11:00
maple powerpc/maple: Remove obsoleted declaration for maple_calibrate_decr() 2024-08-30 21:05:21 +10:00
microwatt powerpc: Make generic_calibrate_decr() the default 2023-03-16 08:56:48 +11:00
pasemi powerpc: Switch back to struct platform_driver::remove() 2024-09-10 11:27:40 +10:00
powermac powerpc/powermac/pfunc_base: Use helper function for_each_child_of_node() 2024-08-29 22:30:34 +10:00
powernv powerpc/powernv: Free name on error in opal_event_init() 2024-10-16 09:26:50 +11:00
ps3 driver core: have match() callback in struct bus_type take a const * 2024-07-03 15:16:54 +02:00
pseries move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
fsl_uli1575.c powerpc/fsl_uli1575: Mark uli_exclude_device() as static 2023-04-20 10:20:50 +10:00
Kconfig powerpc/40x: Remove 40x platforms. 2024-06-28 22:28:47 +10:00
Kconfig.cputype powerpc/mm/64s: Restrict THP to Radix or HPT w/64K pages 2024-09-05 22:29:57 +10:00
Makefile powerpc/platforms: Move files from 4xx to 44x 2024-06-28 22:28:48 +10:00