Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2c57f83 authored by Angus Clark's avatar Angus Clark Committed by David S. Miller
Browse files

stmmac: fix NULL pointer dereference in capabilities fixup (v2)

parent 5e6efe88
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -325,7 +325,7 @@ static int stmmac_init_phy(struct net_device *dev)
	    (interface == PHY_INTERFACE_MODE_RMII))) {
		phydev->supported &= (PHY_BASIC_FEATURES | SUPPORTED_Pause |
				      SUPPORTED_Asym_Pause);
		priv->phydev->advertising = priv->phydev->supported;
		phydev->advertising = phydev->supported;
	}

	/*