]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Fix error path after register_netdev move
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 28 Dec 2016 23:44:41 +0000 (15:44 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Dec 2016 17:08:11 +0000 (12:08 -0500)
commit8ba01381348fc377bddd793baca1bb57234b2987
treee7cdc336ec82e8bac2992476992669751ddf3db5
parentecb3a809c5c72756fb6c12f4a33d4d5603ead81b
net: stmmac: Fix error path after register_netdev move

Commit bdf662d76a3b ("net: stmmac: Fix race between stmmac_drv_probe and
stmmac_open") re-ordered how the MDIO bus registration and the network
device are registered, but missed to unwind the MDIO bus registration in
case we fail to register the network device.

Fixes: bdf662d76a3b ("net: stmmac: Fix race between stmmac_drv_probe and stmmac_open")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Kweh, Hock Leong <hock.leong.kweh@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c