Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp510686pxy; Wed, 21 Apr 2021 08:12:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6x7mgWAqbN9YvPu+bOnAh6MJQsHWahhkQ/cTPPg5dHLL8PCf2FY9VxdLP10vZC3lo1Lgz X-Received: by 2002:a17:90a:b292:: with SMTP id c18mr12311485pjr.179.1619017977481; Wed, 21 Apr 2021 08:12:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619017977; cv=none; d=google.com; s=arc-20160816; b=V4N51VwWFGuv6Ew8vEiplRRK2j9ZFrc9sPOywREp+k0QN6nzD7P/Jdr7ZWmatlneiz mcmcdeWAiGorT/jzyh9O8mTIWy5QlFbQsCCZyFh+7gPgWkZNiiunn4uPP5b2jmCzFDzN dh8kaGExaRQdfknlx9ak76XPyJvYgZYYrVsEmZMTdzGpCa3eOotx5b600NWpznAl1sTt NclG8wzYhIPLttg9Uuc45qNcKeOuzdAVrzgjIUIFRY7Lr2s7KX87Lda5KojlYFFbeSyD lKvyJJ5bm+mDu+8Gg7SDMu/jgOa475YNfLvF9d9XoMBxfDAVi151/Mu3I8XDl0vPNBrF RCjQ== 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=jMxI9PUBHVrAbY5v9BMqAKXYATFamQRZkpgwL11o7yw=; b=NHoXF83oGtdNWwxnyGvy+iRE9pdFe/R2CgyJjMxmWJV2ySbig9e0kIbbv+mn9gyZMt 47/eEd9QITjD1IVLQl+XnTWZpwAjOEhQ1E5CyBxTpAp7wq06qV0GK7EommEspUdrapE4 5KY77c9XlVTH1ZkAwQQZt5q+UmiUMauXfIl9UdrdotlkGZ0rWuEVBLBEU/ikbllHLgxQ 8u8bTQ4XtoxXH6GTZKCUpqm9gRu55SdkONO3oJOXZMPiLgH9KJyTuzfJy8tuvv0C79jG X8DHDzanNNI8xwsQLq1/QTIykcp/xsgAe9o4Y9FLAMd2ur3BUxtqXXiRXCTLe/kE8/S4 9/qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=X2IVc8JR; 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 t17si2663468plo.412.2021.04.21.08.12.45; Wed, 21 Apr 2021 08:12:57 -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=X2IVc8JR; 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 S240788AbhDUNFM (ORCPT + 99 others); Wed, 21 Apr 2021 09:05:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:44060 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240488AbhDUNEV (ORCPT ); Wed, 21 Apr 2021 09:04:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D95B76143B; Wed, 21 Apr 2021 13:03:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619010227; bh=uwUa5giK+hqOEz8KG6fYiKCbWvTf4cA9SwlNTJe96AE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X2IVc8JRUKB44u9tHL74XqG8M108pk5V2LE9kFhF0KrLLo4SY+x3OV8tnGBe/nTO8 a3cvP4WIxsAkyQPz3PgbEOZd+9YHmxFe4rY1QXA1prEHNrNX96DhOEcxjrWL/BKzvk CvA8+eOhiR/5AF1PNiOySrpAZaRQPLAAAEKqOAE8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Aditya Pakki , Hans Verkuil , Mauro Carvalho Chehab Subject: [PATCH 058/190] Revert "media: cx231xx: replace BUG_ON with recovery code" Date: Wed, 21 Apr 2021 14:58:53 +0200 Message-Id: <20210421130105.1226686-59-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 93a24578de721006055b422c7772e0e417e1983c. 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: Aditya Pakki Cc: Hans Verkuil Cc: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/media/usb/cx231xx/cx231xx-i2c.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/usb/cx231xx/cx231xx-i2c.c b/drivers/media/usb/cx231xx/cx231xx-i2c.c index c6659253c6fb..f33b6a077d57 100644 --- a/drivers/media/usb/cx231xx/cx231xx-i2c.c +++ b/drivers/media/usb/cx231xx/cx231xx-i2c.c @@ -515,8 +515,7 @@ int cx231xx_i2c_register(struct cx231xx_i2c *bus) { struct cx231xx *dev = bus->dev; - if (!dev->cx231xx_send_usb_command) - return -EINVAL; + BUG_ON(!dev->cx231xx_send_usb_command); bus->i2c_adap = cx231xx_adap_template; bus->i2c_adap.dev.parent = dev->dev; -- 2.31.1