]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: fix dsa_tree_setup error path
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 20 Sep 2021 22:49:18 +0000 (01:49 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Sep 2021 09:59:39 +0000 (10:59 +0100)
commit2180bf0aad6b180328cc27f9a00c2a4f2300b015
tree9eba816a51115dd7158b40520988dd0e8c3e2dcf
parent9b8cbe05b9d2cec43f50253b1220ca233aca869d
net: dsa: fix dsa_tree_setup error path

Since the blamed commit, dsa_tree_teardown_switches() was split into two
smaller functions, dsa_tree_teardown_switches and dsa_tree_teardown_ports.

However, the error path of dsa_tree_setup stopped calling dsa_tree_teardown_ports.

Fixes: 654b5502be55 ("net: dsa: flush switchdev workqueue before tearing down CPU/DSA ports")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa2.c