Re: [PATCH v2 4/5] extcon: extcon-max8997: Fix IRQ freeing at error path

From: Krzysztof Kozlowski
Date: Tue May 25 2021 - 11:58:14 EST


On 18/05/2021 08:32, Matti Vaittinen wrote:
> If reading MAX8997_MUIC_REG_STATUS1 fails at probe the driver exits
> without freeing the requested IRQs.
>
> Free the IRQs prior returning if reading the status fails.
>
> Fixes: 3e34c8198960 ("extcon: max8997: Avoid forcing UART path on drive probe")
> Signed-off-by: Matti Vaittinen <matti.vaittinen@xxxxxxxxxxxxxxxxx>
> ---
> Changelog:
> v2:
> - new patch (avoid backporting devm_wq just to fix IRQ freeing)
> ---
> drivers/extcon/extcon-max8997.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxx>


Best regards,
Krzysztof