Re: [PATCH 2/2] mfd: lp8788: Fix an error handling path in lp8788_irq_init() and lp8788_irq_init()

From: Lee Jones
Date: Wed Aug 10 2022 - 07:18:10 EST


On Sun, 31 Jul 2022, Christophe JAILLET wrote:

> In lp8788_irq_init(), if an error occurs after a successful
> irq_domain_add_linear() call, it must be undone by a corresponding
> irq_domain_remove() call.
>
> irq_domain_remove() should also be called in lp8788_irq_exit() for the same
> reason.
>
> Fixes: eea6b7cc53aa ("mfd: Add lp8788 mfd driver")
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
> ---
> drivers/mfd/lp8788-irq.c | 3 +++
> 1 file changed, 3 insertions(+)

Applied, thanks.

--
Lee Jones [李琼斯]