Re: [PATCH net] net: dsa: bcm_sf2: Fix driver removal

From: David Miller
Date: Tue Nov 05 2019 - 20:55:20 EST


From: Florian Fainelli <f.fainelli@xxxxxxxxx>
Date: Sat, 2 Nov 2019 20:17:39 -0700

> With the DSA core doing the call to dsa_port_disable() we do not need to
> do that within the driver itself. This could cause an use after free
> since past dsa_unregister_switch() we should not be accessing any
> dsa_switch internal structures.
>
> Fixes: 0394a63acfe2 ("net: dsa: enable and disable all ports")
> Signed-off-by: Florian Fainelli <f.fainelli@xxxxxxxxx>

Applied.