Skip to content
Commit 8c6ae461 authored by Alexey Khoroshilov's avatar Alexey Khoroshilov Committed by Jakub Kicinski
Browse files

net: dsa: lantiq_gswip: fix use after free in gswip_remove()



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: default avatarAlexey Khoroshilov <khoroshilov@ispras.ru>
Fixes: 0d120dfb ("net: dsa: lantiq_gswip: don't use devres for mdiobus")
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/1644921768-26477-1-git-send-email-khoroshilov@ispras.ru


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 0b0dff5b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment