[ldv-project] [PATCH] net: dsa: lantiq_gswip: fix use after free in gswip_remove()

Andrew Lunn andrew at lunn.ch
Tue Feb 15 15:14:33 MSK 2022


On Tue, Feb 15, 2022 at 01:42:48PM +0300, Alexey Khoroshilov wrote:
> of_node_put(priv->ds->slave_mii_bus->dev.of_node) should be
> done before mdiobus_free(priv->ds->slave_mii_bus).
> 
> Signed-off-by: Alexey Khoroshilov <khoroshilov at ispras.ru>
> Fixes: 0d120dfb5d67 ("net: dsa: lantiq_gswip: don't use devres for mdiobus")

Reviewed-by: Andrew Lunn <andrew at lunn.ch>

    Andrew



More information about the ldv-project mailing list