Home
last modified time | relevance | path

Searched hist:dc596e3fe63f88e3d1e509f64e7f761cd4135538 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/dsa/sja1105/
H A Dsja1105_main.cdiff dc596e3fe63f88e3d1e509f64e7f761cd4135538 Mon May 24 04:25:23 CDT 2021 Vladimir Oltean <vladimir.oltean@nxp.com> net: dsa: sja1105: call dsa_unregister_switch when allocating memory fails

Unlike other drivers which pretty much end their .probe() execution with
dsa_register_switch(), the sja1105 does some extra stuff. When that
fails with -ENOMEM, the driver is quick to return that, forgetting to
call dsa_unregister_switch(). Not critical, but a bug nonetheless.

Fixes: 4d7525085a9b ("net: dsa: sja1105: offload the Credit-Based Shaper qdisc")
Fixes: a68578c20a96 ("net: dsa: Make deferred_xmit private to sja1105")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>