This is a note to let you know that I've just added the patch titled net: dsa: fix dsa_tree_setup error path to the 5.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: net-dsa-fix-dsa_tree_setup-error-path.patch and it can be found in the queue-5.14 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. commit 15517d2a4733450b46d8aa9e231a054ec409da14 Author: Vladimir Oltean <vladimir.oltean@xxxxxxx> Date: Tue Sep 21 01:49:18 2021 +0300 net: dsa: fix dsa_tree_setup error path [ Upstream commit e5845aa0eadda3d8a950eb8845c1396827131f30 ] 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: a57d8c217aad ("net: dsa: flush switchdev workqueue before tearing down CPU/DSA ports") Signed-off-by: Vladimir Oltean <vladimir.oltean@xxxxxxx> Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx> Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx> diff --git a/net/dsa/dsa2.c b/net/dsa/dsa2.c index 3a8136d5915d..383fdc0565c7 100644 --- a/net/dsa/dsa2.c +++ b/net/dsa/dsa2.c @@ -1001,6 +1001,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_default_cpu: dsa_tree_teardown_default_cpu(dst);