diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2016-07-29 21:35:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-31 08:14:52 +0200 |
commit | bb9c0fa3aa2932eb3825557e452cac248e709bef (patch) | |
tree | 7c3f187452ad65bd4244b56dcc3755e27cf72233 /drivers/net/ethernet/realtek | |
parent | net: tulip: fix spelling mistake: "attemping" -> "attempting" (diff) | |
download | linux-bb9c0fa3aa2932eb3825557e452cac248e709bef.tar.xz linux-bb9c0fa3aa2932eb3825557e452cac248e709bef.zip |
net: dsa: bcm_sf2: Unwind errors in correct order
In case we cannot complete bcm_sf2_sw_setup() for any reason, and we
go to the out_unmap label, but the MDIO bus has not been registered yet,
we will hit the BUG condition in drivers/net/phy/mdio_bus.c about the
bus not being registered. Fix this by dedicating a specific lable for
when we fail after the MDIO bus has been successfully registered.
Fixes: 461cd1b03e32 ("net: dsa: bcm_sf2: Register our slave MDIO bus")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/realtek')
0 files changed, 0 insertions, 0 deletions