Skip to content

Commit 4f5d5b3

Browse files
error27Steve French
authored andcommitted
cifs: double lock in cifs_reconnect_tcon()
This lock was supposed to be an unlock. Fixes: 6cc041e ("cifs: avoid races in parallel reconnects in smb1") Signed-off-by: Dan Carpenter <error27@gmail.com> Reviewed-by: Paulo Alcantara (SUSE) <pc@manguebit.com> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent d19342c commit 4f5d5b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/cifs/cifssmb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ cifs_reconnect_tcon(struct cifs_tcon *tcon, int smb_command)
120120
spin_lock(&server->srv_lock);
121121
if (server->tcpStatus == CifsNeedReconnect) {
122122
spin_unlock(&server->srv_lock);
123-
mutex_lock(&ses->session_mutex);
123+
mutex_unlock(&ses->session_mutex);
124124

125125
if (tcon->retry)
126126
goto again;

0 commit comments

Comments
 (0)