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

From: Vivien Didelot
Date: Sun Nov 03 2019 - 00:01:32 EST


On Sat, 2 Nov 2019 20:17:39 -0700, Florian Fainelli <f.fainelli@xxxxxxxxx> wrote:
> 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>

Reviewed-by: Vivien Didelot <vivien.didelot@xxxxxxxxx>