Commit 4f5d5b33 authored by Dan Carpenter's avatar Dan Carpenter Committed by Steve French
Browse files

cifs: double lock in cifs_reconnect_tcon()



This lock was supposed to be an unlock.

Fixes: 6cc041e9 ("cifs: avoid races in parallel reconnects in smb1")
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Reviewed-by: default avatarPaulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent d19342c6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -120,7 +120,7 @@ cifs_reconnect_tcon(struct cifs_tcon *tcon, int smb_command)
	spin_lock(&server->srv_lock);
	if (server->tcpStatus == CifsNeedReconnect) {
		spin_unlock(&server->srv_lock);
		mutex_lock(&ses->session_mutex);
		mutex_unlock(&ses->session_mutex);

		if (tcon->retry)
			goto again;