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

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Mon Nov 30 08:51:30 EST 2020


On Mon, Nov 30, 2020 at 03:33:23PM +0200, Baruch Siach wrote:
> 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?

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20201130/ba112fe8/attachment-0001.sig>


More information about the linux-arm-kernel mailing list