kernel/drivers/net/phy/smsc.c
.. .. @@ -181,8 +181,11 @@ 181 181 static int lan87xx_read_status(struct phy_device *phydev) 182 182 { 183 183 struct smsc_phy_priv *priv = phydev->priv; 184 + int err;184 185 185 - int err = genphy_read_status(phydev);186 + err = genphy_read_status(phydev);187 + if (err)188 + return err;186 189 187 190 if (!phydev->link && priv->energy_enable) { 188 191 /* Disable EDPD to wake up PHY */