Skip to content

Commit e5845aa

Browse files
vladimirolteandavem330
authored andcommitted
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: a57d8c2 ("net: dsa: flush switchdev workqueue before tearing down CPU/DSA ports") Signed-off-by: Vladimir Oltean <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 431db53 commit e5845aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/dsa/dsa2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,6 +1089,7 @@ static int dsa_tree_setup(struct dsa_switch_tree *dst)
10891089
teardown_master:
10901090
dsa_tree_teardown_master(dst);
10911091
teardown_switches:
1092+
dsa_tree_teardown_ports(dst);
10921093
dsa_tree_teardown_switches(dst);
10931094
teardown_cpu_ports:
10941095
dsa_tree_teardown_cpu_ports(dst);

0 commit comments

Comments
 (0)