]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - net/dsa/dsa2.c
net: dsa: fix dsa_tree_setup error path
[mirror_ubuntu-jammy-kernel.git] / net / dsa / dsa2.c
index f14897d9b31d9ba1242efc4451b991edfb5e15cf..f54639a3a8220a8acac07179b4f1032e88f01e73 100644 (file)
@@ -1089,6 +1089,7 @@ static int dsa_tree_setup(struct dsa_switch_tree *dst)
 teardown_master:
        dsa_tree_teardown_master(dst);
 teardown_switches:
+       dsa_tree_teardown_ports(dst);
        dsa_tree_teardown_switches(dst);
 teardown_cpu_ports:
        dsa_tree_teardown_cpu_ports(dst);