| From | Greg Kroah-Hartman <> | Subject | [PATCH 170/190] Revert "net: dsa: bcm_sf2: Propagate error value from mdio_write" | Date | Wed, 21 Apr 2021 15:00:45 +0200 |
| |
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 <kjlu@umn.edu> Cc: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> --- 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
|