[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20221222214607.39737-1-artem.chernyshev@red-soft.ru>
Date: Fri, 23 Dec 2022 00:46:07 +0300
From: Artem Chernyshev <artem.chernyshev@...-soft.ru>
To: Mauro Carvalho Chehab <mchehab@...nel.org>
Cc: Artem Chernyshev <artem.chernyshev@...-soft.ru>,
Michael Krufky <mkrufky@...uxtv.org>,
linux-media@...r.kernel.org, linux-kernel@...r.kernel.org,
lvc-project@...uxtesting.org
Subject: [PATCH] [media] mxl111sf: Check return value in mxl111sf_config_mpeg_in
Error check after mxl111sf_read_reg
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: 4c66c9205c07 ("[media] dvb-usb: add ATSC support for the Hauppauge WinTV-Aero-M")
Signed-off-by: Artem Chernyshev <artem.chernyshev@...-soft.ru>
---
drivers/media/usb/dvb-usb-v2/mxl111sf-phy.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/media/usb/dvb-usb-v2/mxl111sf-phy.c b/drivers/media/usb/dvb-usb-v2/mxl111sf-phy.c
index 40b26712ba4c..ad1888514bd0 100644
--- a/drivers/media/usb/dvb-usb-v2/mxl111sf-phy.c
+++ b/drivers/media/usb/dvb-usb-v2/mxl111sf-phy.c
@@ -121,7 +121,8 @@ int mxl111sf_config_mpeg_in(struct mxl111sf_state *state,
mxl_fail(ret);
/* Configure MPEG Clock phase */
- mxl111sf_read_reg(state, V6_MPEG_IN_CLK_INV_REG, &mode);
+ ret = mxl111sf_read_reg(state, V6_MPEG_IN_CLK_INV_REG, &mode);
+ mxl_fail(ret);
if (clock_phase == TSIF_NORMAL)
mode &= ~V6_INVERTED_CLK_PHASE;
--
2.30.3
Powered by blists - more mailing lists