Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp848077rwj; Fri, 23 Dec 2022 08:49:19 -0800 (PST) X-Google-Smtp-Source: AMrXdXtRgKt5QtwWB5MKbJkHs1pfr8O2NTGA/EUj4LG7ar9bYfGIKVxHlyiLolXno72g74W1BJqW X-Received: by 2002:a17:906:9693:b0:7c0:e989:bf70 with SMTP id w19-20020a170906969300b007c0e989bf70mr7550680ejx.25.1671814159528; Fri, 23 Dec 2022 08:49:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671814159; cv=none; d=google.com; s=arc-20160816; b=vCSCg/q6CV2hhFvErwtXWqj1Xk1xIgqQv2LDrPBm5G8fhqDD7UleDt3s6YrjGdg5fE qhHvEMNtFDD/WHifFaS69//YC+B+zH0DNfa1cP2caIkkPpBbIr614HMhciWvDr6N0l4G Hv3ii7Xv4+Bo5KiA/F022XhoMlja76phADXs0iN5DA7K0xcnnBLkMWWaqs7wNefHPRlh aZENN1HCWJtzWem2pS6m3GRIn56iuHpEuemzyEa/PjXlH4j+9d2NbuDCjcqH0KGH03Ll 3PFTghwxZJQssGo3FfkDftHRlq+hwqazSMUuQFNI10aNAgJ8WKGnc8iwdzQ3MJl8GYeX zEVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=BEKS+Y2F0oNnWrcYYA4Ya4K02bJgwyiPzBUSJNb5O78=; b=Gf+8EkTCCIy/jd++bxg03XVQFo09IfCKE40UbmNv1z6YCM22iAsJbYmfig65ezmDGu gg5x3+U7iAKrWC4b8Lg+u/hvVTpoyGXp4fRurfGoFioej3V4DdPHSZm74i/zDaFLZ+xq XeF9xsBHBGU96/UYjRP2cBk15btD8hNyu+94YA7WQiK3nBzyNv6FdouDfOMJ61nUALiW KwTfSVKMKkVt30P8SXPzq2mrKilyV1lTXw7OTSVAQtnnVuP8yXCz4iX5ro8ZzNM6OZAj LyAkE5ntDGZaWhab+OBPn2AFGZrcUx2YO65W/ZsSE3LWqtJ5hV+pcsh5avFzx6kcCxMC jw8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xh9-20020a170906da8900b007be4d8bf6d5si2616574ejb.714.2022.12.23.08.49.04; Fri, 23 Dec 2022 08:49:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231793AbiLWQ2P (ORCPT + 65 others); Fri, 23 Dec 2022 11:28:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231699AbiLWQ2N (ORCPT ); Fri, 23 Dec 2022 11:28:13 -0500 Received: from gw.red-soft.ru (red-soft.ru [188.246.186.2]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6E1F05FFF; Fri, 23 Dec 2022 08:28:11 -0800 (PST) Received: from localhost.localdomain (unknown [10.81.81.211]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gw.red-soft.ru (Postfix) with ESMTPSA id E02CA3E1BC4; Fri, 23 Dec 2022 19:28:08 +0300 (MSK) Date: Fri, 23 Dec 2022 19:28:07 +0300 From: Artem Chernyshev To: Michael Ira Krufky Cc: Mauro Carvalho Chehab , linux-media , LKML , lvc-project@linuxtesting.org Subject: Re: [PATCH] [media] mxl111sf: Check return value in mxl111sf_config_mpeg_in Message-ID: References: <20221222214607.39737-1-artem.chernyshev@red-soft.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Lua-Profiles: 174378 [Dec 23 2022] X-KLMS-AntiSpam-Version: 5.9.59.0 X-KLMS-AntiSpam-Envelope-From: artem.chernyshev@red-soft.ru X-KLMS-AntiSpam-Rate: 0 X-KLMS-AntiSpam-Status: not_detected X-KLMS-AntiSpam-Method: none X-KLMS-AntiSpam-Auth: dkim=none X-KLMS-AntiSpam-Info: LuaCore: 502 502 69dee8ef46717dd3cb3eeb129cb7cc8dab9e30f6, {Tracking_from_domain_doesnt_match_to}, d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;red-soft.ru:7.1.1;127.0.0.199:7.1.2 X-MS-Exchange-Organization-SCL: -1 X-KLMS-AntiSpam-Interceptor-Info: scan successful X-KLMS-AntiPhishing: Clean, bases: 2022/12/23 14:48:00 X-KLMS-AntiVirus: Kaspersky Security for Linux Mail Server, version 8.0.3.30, bases: 2022/12/23 12:54:00 #20700750 X-KLMS-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, Dec 23, 2022 at 07:28:47AM -0500, Michael Ira Krufky wrote: > On Thu, Dec 22, 2022, 4:46 PM Artem Chernyshev > wrote: > > > 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 > > --- > > 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 > > > > Artem, > > Thank you for this. If I recall correctly, the read from that particular > register often returns a failure despite the correct value being read into > memory. This needs to be tested before being merged, and if my memory is > correct about this we should add a comment about it. Unfortunately, I'm out > of town at the moment, I won't be able to test this for some time. Can we > hold off on this one for a bit? If you don't hear from me after a few > weeks, please feel free to ping me again. Thanks. > > Best, > Michael Krufky > > > Thanks for reply. I'll be waiting for your decision Best regards, Artem