mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
media: vsp1: Fix an error handling path in the probe function
[ Upstream commit7113469daf
] A previous 'rcar_fcp_get()' call must be undone in the error handling path, as already done in the remove function. Fixes:94fcdf8297
("[media] v4l: vsp1: Add FCP support") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
717aeb383a
commit
c03967eb83
1 changed files with 3 additions and 1 deletions
|
@ -866,8 +866,10 @@ static int vsp1_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
done:
|
||||
if (ret)
|
||||
if (ret) {
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
rcar_fcp_put(vsp1->fcp);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue