summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/eth.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/eth.c b/net/eth.c
index 0a1850f1c4..101fc10171 100644
--- a/net/eth.c
+++ b/net/eth.c
@@ -138,7 +138,8 @@ static int eth_carrier_check(int force)
if (!eth_current->phydev)
return 0;
- if (force || is_timeout(last_link_check, 5 * SECOND)) {
+ if (force || is_timeout(last_link_check, 5 * SECOND) ||
+ !eth_current->phydev->link) {
ret = phy_update_status(eth_current->phydev);
if (ret)
return ret;