Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp550276pxy; Wed, 21 Apr 2021 09:05:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxY8TQaXzfyAL4V1VOriQqqAlRRXQe77D4MeiOL2GuEJ3i7gy4ftA1V7ZKO2h2JbVDTOFXC X-Received: by 2002:a17:90b:4504:: with SMTP id iu4mr11961433pjb.76.1619021102412; Wed, 21 Apr 2021 09:05:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619021102; cv=none; d=google.com; s=arc-20160816; b=PGW8Cv9d0048KDhFMQqnJu6nxIDAmJqYKISJLmL5MJe6toZrVryVUfi6IwXuZDHtA9 /KmiFJULpcedzyWKRu8skYkVrYP0n5CuwZnlXqTohNRT4vNkhDN/C9B7y+0J2U/3WNwZ yi/WDRiT+VqWp7nvKUTr82u/2gDfskDcwd7ike9ySr1nePm/10qOVSGdjOj6QoTFHw83 bktUDpwmWcG0N29ChX+IJvxHVjbB13V3Ou0sjKKcXiVNWa8t4ntNoUMy1Vg1rVBZqTn5 8oW6MVyfck9nmRWStR4Cyi+x2fpxJd47n57oEnrr/9hoUJgqT6zkWk3H957V59tG5LZI vXcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=123R/jOar+WhfXY0DkJkqQLzrZGkKRKIWRBoJddUc3w=; b=lEpAJcQEC/Y/LIetDbyhLPyMCMLgG7xaQP6S7KEShvu+itNg+UGPamd99p1mFXZ0VW BnwWC/mvGtV8Pk6+YZaSzqBEkakKteY49ewMUYSju43ST3Q5eWxoU/ldHTyxF1v2ve1O 6dkQxeLScedBBHkWxkqnXamH7QEbeSpQnSSKO1OTNieDrFJLAifhh1bpsng8LoqVUj99 mQ+mLgOFCw91SLYBipalFTmLBU7rPby2sbM5wEZKD6KRDX94AwKF13qZIEbXjdzzvn8A j3zAI2XaKaUARcmCGpzeyi9ru7PWsu1xb1g3wltsr/qM1J0yliaocvrErmFHk8SAO3dy 92EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nvBinzxp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t2si2796685pfg.49.2021.04.21.09.04.50; Wed, 21 Apr 2021 09:05:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nvBinzxp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241890AbhDUNJ3 (ORCPT + 99 others); Wed, 21 Apr 2021 09:09:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:47284 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240889AbhDUNG6 (ORCPT ); Wed, 21 Apr 2021 09:06:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9F19E6147F; Wed, 21 Apr 2021 13:06:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619010383; bh=Tx6TRLl2PIEPearhZRweiXGHVRw1eOg7YVKuG+Z9hkw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nvBinzxp6V9orOZU6M7VjuvIKonchoj5DlsGobGoGIKFHafzkhyKHEOJa705Zci/8 1MI90gN/JxEVKFOH4LUx0wWspfU62OXE2crFSMlx5APTkl1QdL42pX3BNYH5E0qzTy 1aWQt610b4VHWLGj3oaAbCzVeHwkFC1ID3XUTvNM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Kangjie Lu , Matthias Schwarzott , Sean Young , Mauro Carvalho Chehab Subject: [PATCH 117/190] Revert "media: si2165: fix a missing check of return value" Date: Wed, 21 Apr 2021 14:59:52 +0200 Message-Id: <20210421130105.1226686-118-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210421130105.1226686-1-gregkh@linuxfoundation.org> References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit 0ab34a08812a3334350dbaf69a018ee0ab3d2ddd. Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota). Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase. Cc: Kangjie Lu Cc: Matthias Schwarzott Cc: Matthias Schwarzott Cc: Sean Young Cc: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/media/dvb-frontends/si2165.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/media/dvb-frontends/si2165.c b/drivers/media/dvb-frontends/si2165.c index ebee230afb7b..dc39543e0db1 100644 --- a/drivers/media/dvb-frontends/si2165.c +++ b/drivers/media/dvb-frontends/si2165.c @@ -266,20 +266,18 @@ static u32 si2165_get_fe_clk(struct si2165_state *state) static int si2165_wait_init_done(struct si2165_state *state) { - int ret; + int ret = -EINVAL; u8 val = 0; int i; for (i = 0; i < 3; ++i) { - ret = si2165_readreg8(state, REG_INIT_DONE, &val); - if (ret < 0) - return ret; + si2165_readreg8(state, REG_INIT_DONE, &val); if (val == 0x01) return 0; usleep_range(1000, 50000); } dev_err(&state->client->dev, "init_done was not set\n"); - return -EINVAL; + return ret; } static int si2165_upload_firmware_block(struct si2165_state *state, -- 2.31.1