diff options
author | Dan Carpenter <error27@gmail.com> | 2023-04-06 11:55:47 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-04-06 22:45:41 -0500 |
commit | 4f5d5b33fc400911d6e1f49095522b361d9cbe13 (patch) | |
tree | c085574bc6774b8065fe5dfecc3933f548f6a174 /fs/cifs/cifssmb.c | |
parent | d19342c6609b67f2ba83b9eccca2777e3687f625 (diff) |
cifs: double lock in cifs_reconnect_tcon()
This lock was supposed to be an unlock.
Fixes: 6cc041e90c17 ("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>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 0d30b17494e4..9d963caec35c 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c @@ -120,7 +120,7 @@ again: 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; |