Skip to content

Commit aea02fc

Browse files
Yang YingliangSteve French
authored andcommitted
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 <[email protected]> Reviewed-by: Shyam Prasad N <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent d7d7a66 commit aea02fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/cifs/connect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4583,7 +4583,7 @@ int cifs_tree_connect(const unsigned int xid, struct cifs_tcon *tcon, const stru
45834583
if (tcon->ses->ses_status != SES_GOOD ||
45844584
(tcon->status != TID_NEW &&
45854585
tcon->status != TID_NEED_TCON)) {
4586-
spin_unlock(&tcon->ses->ses_lock);
4586+
spin_unlock(&tcon->tc_lock);
45874587
return 0;
45884588
}
45894589
tcon->status = TID_IN_TCON;

0 commit comments

Comments
 (0)