Re: [PATCH v2] memory: fsl_ifc: fix leak of irq and nand_irq in fsl_ifc_ctrl_probe

From: Krzysztof Kozlowski
Date: Thu Oct 07 2021 - 14:43:21 EST


On Sat, 25 Sep 2021 23:14:32 +0800, Dongliang Mu wrote:
> The error handling code of fsl_ifc_ctrl_probe is problematic. When
> fsl_ifc_ctrl_init fails or request_irq of fsl_ifc_ctrl_dev->irq fails,
> it forgets to free the irq and nand_irq. Meanwhile, if request_irq of
> fsl_ifc_ctrl_dev->nand_irq fails, it will still free nand_irq even if
> the request_irq is not successful.
>
> Fix this by refactoring the error handling code
>
> [...]

Applied, thanks!

[1/1] memory: fsl_ifc: fix leak of irq and nand_irq in fsl_ifc_ctrl_probe
commit: 4ed2f3545c2e5acfbccd7f85fea5b1a82e9862d7

Best regards,
--
Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxx>