Re: [PATCH] net: dsa: bcm_sf2: Unwind errors in correct order

2016-07-31 Thread David Miller
From: Florian Fainelli Date: Fri, 29 Jul 2016 12:35:57 -0700 > 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

Re: [PATCH] net: dsa: bcm_sf2: Unwind errors in correct order

2016-07-29 Thread Vivien Didelot
Florian Fainelli writes: > 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

Re: [PATCH] net: dsa: bcm_sf2: Unwind errors in correct order

2016-07-29 Thread Florian Fainelli
On 07/29/2016 12:35 PM, Florian Fainelli wrote: > 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

[PATCH] net: dsa: bcm_sf2: Unwind errors in correct order

2016-07-29 Thread Florian Fainelli
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