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

Skip to content
Commit e743471f authored by Bryan O'Donoghue's avatar Bryan O'Donoghue Committed by David S. Miller
Browse files

stmmac: fix oops on rmmod after assigning ip addr



An oops exists in the flow of stmmac_release().
phy_ethtool_get_wol() depends on phydev->drv.
phydev->drv will be null after stmmac_mdio_unreg() completes.

Steps to reproduce on Quark X1000:

1. ifconfig eth0 192.168.0.1
2. rmmod stmmac_pci

To fix this stmmac_mdio_unreg() should be run after unregister_netdev().

Signed-off-by: default avatarBryan O'Donoghue <pure.logic@nexus-software.ie>
Reported-by: default avatarDan O'Donovan <dan.odonovan@emutex.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 31976cfd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment