From: Xavier Roumegue Date: Tue, 3 Jan 2023 10:55:34 +0000 (+0100) Subject: media: dw100: Add a missing unwind goto in dw100_probe() X-Git-Tag: v6.3-rc1~72^2~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0d828fd50c73d30da3c0d52a31c6f3ede2498020;p=thirdparty%2Fkernel%2Flinux.git 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 Reported-by: Dan Carpenter Signed-off-by: Xavier Roumegue Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/nxp/dw100/dw100.c b/drivers/media/platform/nxp/dw100/dw100.c index f6d48c36f3860..189d60cd5ed13 100644 --- a/drivers/media/platform/nxp/dw100/dw100.c +++ b/drivers/media/platform/nxp/dw100/dw100.c @@ -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);