Linux Media Controller development
 help / color / mirror / Atom feed
* [PATCH] media: dw100: Add a missing unwind goto in dw100_probe()
@ 2023-01-03 10:55 Xavier Roumegue (OSS)
  2023-01-03 11:01 ` Alexander Stein
  0 siblings, 1 reply; 5+ messages in thread
From: Xavier Roumegue (OSS) @ 2023-01-03 10:55 UTC (permalink / raw)
  To: mchehab, ezequiel, hverkuil, laurent.pinchart
  Cc: Xavier Roumegue, linux-media, kernel test robot, Dan Carpenter

From: Xavier Roumegue <xavier.roumegue@oss.nxp.com>

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>
---
 drivers/media/platform/nxp/dw100/dw100.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/platform/nxp/dw100/dw100.c b/drivers/media/platform/nxp/dw100/dw100.c
index f6d48c36f386..189d60cd5ed1 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);
-- 
2.39.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-01-03 13:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-03 10:55 [PATCH] media: dw100: Add a missing unwind goto in dw100_probe() Xavier Roumegue (OSS)
2023-01-03 11:01 ` Alexander Stein
2023-01-03 13:35   ` Xavier Roumegue (OSS)
2023-01-03 13:48     ` Alexander Stein
2023-01-03 13:52     ` Laurent Pinchart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox