Re: [PATCH] powerpc/powernv: Free name on error in opal_event_init()

2024-10-29 Thread Michael Ellerman
On Fri, 20 Sep 2024 19:35:20 +1000, Michael Ellerman wrote: > 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 th

[PATCH] powerpc/powernv: Free name on error in opal_event_init()

2024-09-20 Thread Michael Ellerman
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 <2639161...@qq.com> Closes: htt