]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: dsa: unlock the rtnl_mutex when dsa_master_setup() fails
authorVladimir Oltean <vladimir.oltean@nxp.com>
Thu, 3 Mar 2022 14:08:40 +0000 (16:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 6 Mar 2022 10:55:54 +0000 (10:55 +0000)
commitafb3cc1a397d77771f342691b7e6b032a234d7f2
treec889c5b038aafdeaaa12d0356728e02f356eff8b
parentc6a502c2299941c8326d029cfc8a3bc8a4607ad5
net: dsa: unlock the rtnl_mutex when dsa_master_setup() fails

After the blamed commit, dsa_tree_setup_master() may exit without
calling rtnl_unlock(), fix that.

Fixes: c146f9bc195a ("net: dsa: hold rtnl_mutex when calling dsa_master_{setup,teardown}")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa2.c