linux/net/dsa
Florian Fainelli 73dcb55653 net: dsa: Unregister slave_dev in error path
With commit 0071f56e46 ("dsa: Register netdev before phy"), we are now trying
to free a network device that has been previously registered, and in case of
errors, this will make us hit the BUG_ON(dev->reg_state != NETREG_UNREGISTERED)
condition.

Fix this by adding a missing unregister_netdev() before free_netdev().

Fixes: 0071f56e46 ("dsa: Register netdev before phy")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-02-17 22:05:16 -05:00
..
dsa_priv.h net: dsa: move dsa slave destroy code to slave.c 2015-12-07 16:35:50 -05:00
dsa.c phy: Add an mdio_device structure 2016-01-07 14:31:26 -05:00
Kconfig
Makefile
slave.c net: dsa: Unregister slave_dev in error path 2016-02-17 22:05:16 -05:00
tag_brcm.c
tag_dsa.c
tag_edsa.c
tag_trailer.c