[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210617135500.2158302-1-yangyingliang@huawei.com>
Date: Thu, 17 Jun 2021 21:55:00 +0800
From: Yang Yingliang <yangyingliang@...wei.com>
To: <linux-kernel@...r.kernel.org>, <linux-staging@...ts.linux.dev>,
<linux-media@...r.kernel.org>
CC: <mchehab@...nel.org>, <sakari.ailus@...ux.intel.com>,
<dan.carpenter@...cle.com>
Subject: [PATCH -next resend] media: staging: media: atomisp: pci: fix error return code in atomisp_pci_probe()
If init_atomisp_wdts() fails, atomisp_pci_probe() need return
error code.
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: Yang Yingliang <yangyingliang@...wei.com>
---
drivers/staging/media/atomisp/pci/atomisp_v4l2.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/media/atomisp/pci/atomisp_v4l2.c b/drivers/staging/media/atomisp/pci/atomisp_v4l2.c
index 948769ca6539..d50c38e1cd1d 100644
--- a/drivers/staging/media/atomisp/pci/atomisp_v4l2.c
+++ b/drivers/staging/media/atomisp/pci/atomisp_v4l2.c
@@ -1763,7 +1763,8 @@ static int atomisp_pci_probe(struct pci_dev *pdev, const struct pci_device_id *i
if (err < 0)
goto register_entities_fail;
/* init atomisp wdts */
- if (init_atomisp_wdts(isp) != 0)
+ err = init_atomisp_wdts(isp);
+ if (err)
goto wdt_work_queue_fail;
/* save the iunit context only once after all the values are init'ed. */
--
2.25.1
Powered by blists - more mailing lists