Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp582560pxy; Wed, 21 Apr 2021 09:47:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1QhExK1IeGOG7zrMQ2lGa0oTw6ldCNPSscVEm+yb2XWpbqGplnzOHQXy8x8c2sbgfMWbJ X-Received: by 2002:a05:6a00:2303:b029:249:b91e:72f0 with SMTP id h3-20020a056a002303b0290249b91e72f0mr29772138pfh.80.1619023678906; Wed, 21 Apr 2021 09:47:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619023678; cv=none; d=google.com; s=arc-20160816; b=0+Px9d8nYWZToc4eKXajpChxzhMsZ149RDaKYBgHgIZ3G1IPNT9Mp9ykzWXuwqOfKt 9oHjvvQYcxxxlnW2pC03kjhR0cP4/8cWSspCBa7706mkpBBUTQzN20kB3EngzJK8wgbf 9OhBZ8dFeJWmxyqLJWMcbRPPFR01y6VqIaK+Q2pyedSuaTom0KsJwNeeTKVmr6h4Zx9u ZJ5j0RbpTlbYDDxYdXyPPQ3oaZhWSGMFVXF2kaqDg7qLQlGDOKoLiJ+E7UAnZq/7J0Sa WRa6HEclZAcJcq478cB5bfK91NJOX6erZniXJ1fuOzfJDEginqz/cBa5pgknj43xXOJj f0pw== 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=Vx/Ck41JtJUm/oqE6iHDYq/gE7zCLYV6HGQfSHH/NDE=; b=FP5TFqnSIwW6mZEWkySjfZm3b1ONEnT4uvZ+lABN1SsCxzgwABZDGhEJsFa6INUv84 l1/LhFdX4HWbMR6KEVK4uBEMOtDqcPlYd8nj0dRDgHr79f+ZTnqOFAqOlLzEEoL7jfo6 kXt6IlsGE+7OP/pWYzVFiikMHuqvw9oY41KZVKFep0QtSmMj5QljObIIdwh2/cIWJ/22 QuGW2PdalsfHq6Z2a0m9D3pxxE7OlB6eygCM3SecReCKi4m+hmNaOBjEUxkN4FMD9bsl s1BZY6LWvJVlKtLnHg91kh9DvxuJDwv5Kr3LJBCFzxAbz2WGuwBTTrAV6uFVUCngca/S JX5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bcvUBZLU; 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 p6si90966plf.58.2021.04.21.09.47.46; Wed, 21 Apr 2021 09:47:58 -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=bcvUBZLU; 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 S241428AbhDUNNv (ORCPT + 99 others); Wed, 21 Apr 2021 09:13:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:52158 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241816AbhDUNJZ (ORCPT ); Wed, 21 Apr 2021 09:09:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 93F1B61454; Wed, 21 Apr 2021 13:08:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619010532; bh=b+WCiNdD5b7C4sxQkL4CjoBuwghl8oownnzhJX+7Jsk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bcvUBZLU9J3i+TDTNmfDhCgX7y23cvUOXSedFpIHtMDycgJEnnqhsYv/ISNVfI0BJ hNA/PPAxQJjpCEAQV7kwX+txCH8S+RPvnfLWgrR/NdDSN6HA4w2KCVK/YBn4DK5/bi lTp/0InPz1h69KteiakQHwdq6QwUggr/pSNw8d+A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Kangjie Lu , "David S . Miller" Subject: [PATCH 170/190] Revert "net: dsa: bcm_sf2: Propagate error value from mdio_write" Date: Wed, 21 Apr 2021 15:00:45 +0200 Message-Id: <20210421130105.1226686-171-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 e49505f7255be8ced695919c08a29bf2c3d79616. 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: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/dsa/bcm_sf2.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/dsa/bcm_sf2.c b/drivers/net/dsa/bcm_sf2.c index ba5d546d06aa..b4f3d458143a 100644 --- a/drivers/net/dsa/bcm_sf2.c +++ b/drivers/net/dsa/bcm_sf2.c @@ -361,10 +361,11 @@ static int bcm_sf2_sw_mdio_write(struct mii_bus *bus, int addr, int regnum, * send them to our master MDIO bus controller */ if (addr == BRCM_PSEUDO_PHY_ADDR && priv->indir_phy_mask & BIT(addr)) - return bcm_sf2_sw_indir_rw(priv, 0, addr, regnum, val); + bcm_sf2_sw_indir_rw(priv, 0, addr, regnum, val); else - return mdiobus_write_nested(priv->master_mii_bus, addr, - regnum, val); + mdiobus_write_nested(priv->master_mii_bus, addr, regnum, val); + + return 0; } static irqreturn_t bcm_sf2_switch_0_isr(int irq, void *dev_id) -- 2.31.1