From: Bryan O'Donoghue Date: Thu, 16 Apr 2015 16:56:03 +0000 (+0100) Subject: stmmac: fix oops on rmmod after assigning ip addr X-Git-Tag: omap-for-v4.1/fixes-rc1~108^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e743471f8d9c6ad00eb10a6d1e05803231e1de83;p=pandora-kernel.git 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: Bryan O'Donoghue Reported-by: Dan O'Donovan Signed-off-by: David S. Miller --- Reading git-diff-tree failed