commit | 7b9a88a390dacb37b051a7b09b9a08f546edf5eb | [log] [tgz] |
---|---|---|
author | Florian Fainelli <f.fainelli@gmail.com> | Fri Feb 17 16:07:33 2017 -0800 |
committer | David S. Miller <davem@davemloft.net> | Mon Feb 20 10:15:11 2017 -0500 |
tree | f0fa1a1f8d52494f4f60b6aea4a098e2969a1753 | |
parent | cd2b708750582e327789d8fb07c6eb5f79f7759f [diff] |
net: phy: Fix PHY unbind crash The PHY library does not deal very well with bind and unbind events. The first thing we would see is that we were not properly canceling the PHY state machine workqueue, so we would be crashing while dereferencing phydev->drv since there is no driver attached anymore. Suggested-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>