diff options
Diffstat (limited to 'drivers/net/phy/phy.c')
-rw-r--r-- | drivers/net/phy/phy.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 602816d70281..c5675df5fc6f 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c | |||
@@ -985,8 +985,10 @@ void phy_state_machine(struct work_struct *work) | |||
985 | * state machine would be pointless and possibly error prone when | 985 | * state machine would be pointless and possibly error prone when |
986 | * called from phy_disconnect() synchronously. | 986 | * called from phy_disconnect() synchronously. |
987 | */ | 987 | */ |
988 | mutex_lock(&phydev->lock); | ||
988 | if (phy_polling_mode(phydev) && phy_is_started(phydev)) | 989 | if (phy_polling_mode(phydev) && phy_is_started(phydev)) |
989 | phy_queue_state_machine(phydev, PHY_STATE_TIME); | 990 | phy_queue_state_machine(phydev, PHY_STATE_TIME); |
991 | mutex_unlock(&phydev->lock); | ||
990 | } | 992 | } |
991 | 993 | ||
992 | /** | 994 | /** |