Thread (4 messages) 4 messages, 2 authors, 2020-11-30

Re: [PATCH] gpio: mvebu: fix potential user-after-free on probe

From: Baruch Siach <baruch@tkos.co.il>
Date: 2020-11-30 13:56:46
Also in: linux-gpio, linux-pwm

Hi Uwe,

On Mon, Nov 30 2020, Uwe Kleine-König wrote:
On Mon, Nov 30, 2020 at 03:33:23PM +0200, Baruch Siach wrote:
quoted
When mvebu_pwm_probe() fails IRQ domain is not released. Move
mvebu_pwm_probe() before IRQ domain registration.
And now if something with IRQ domain registration fails the pwm stuff
isn't freed?
As far as I can see mvebu_pwm_probe() uses devres exclusively to
allocate resources.

baruch

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help