mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
media: dw100: Add a missing unwind goto in dw100_probe()
In case the IRQ allocation returns an error in dw100_probe(), the pm runtime is not disabled before to return. Add the missing unwind goto on the error handling path of the IRQ allocation request. Reported-by: kernel test robot <lkp@intel.com> Reported-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Xavier Roumegue <xavier.roumegue@oss.nxp.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
de65538684
commit
0d828fd50c
1 changed files with 1 additions and 1 deletions
|
@ -1571,7 +1571,7 @@ static int dw100_probe(struct platform_device *pdev)
|
|||
dev_name(&pdev->dev), dw_dev);
|
||||
if (ret < 0) {
|
||||
dev_err(&pdev->dev, "Failed to request irq: %d\n", ret);
|
||||
return ret;
|
||||
goto err_pm;
|
||||
}
|
||||
|
||||
ret = v4l2_device_register(&pdev->dev, &dw_dev->v4l2_dev);
|
||||
|
|
Loading…
Reference in a new issue