Re: [PATCH] [v2] media: mx2_emmaprp: Fix memleak in emmaprp_probe
From: Fabio Estevam
Date: Wed Aug 26 2020 - 07:04:22 EST
Hi Dinghao,
On Wed, Aug 26, 2020 at 6:31 AM Dinghao Liu <dinghao.liu@xxxxxxxxxx> wrote:
>
> When platform_get_irq() fails, we should release
> vfd and unregister pcdev->v4l2_dev just like the
> subsequent error paths.
>
> Fixes: d4e192cc44914 ("media: mx2_emmaprp: Check for platform_get_irq() error")
> Signed-off-by: Dinghao Liu <dinghao.liu@xxxxxxxxxx>
Thanks for the fix:
Reviewed-by: Fabio Estevam <festevam@xxxxxxxxx>