]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: fix wrong unlock before return from cifs_tree_connect()
authorYang Yingliang <yangyingliang@huawei.com>
Fri, 29 Jul 2022 07:49:35 +0000 (15:49 +0800)
committerSteve French <stfrench@microsoft.com>
Mon, 1 Aug 2022 06:34:45 +0000 (01:34 -0500)
commit6fd6697504290d872b0a849c56227cf6146e7fa1
tree48a71c41439fa4ee707d081b979b6352380d0460
parent552abef15c9b59e0d46f9bcf16b264358eadb4d3
cifs: fix wrong unlock before return from cifs_tree_connect()

It should unlock 'tcon->tc_lock' before return from cifs_tree_connect().

Fixes: fe67bd563ec2 ("cifs: avoid use of global locks for high contention data")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c