Skip to content

Commit 993d1c3

Browse files
sprasad-microsoftSteve French
authored andcommitted
cifs: fix stray unlock in cifs_chan_skip_or_disable
A recent change moved the code that decides to skip a channel or disable multichannel entirely, into a helper function. During this, a mutex_unlock of the session_mutex should have been removed. Doing that here. Fixes: f591062 ("cifs: handle servers that still advertise multichannel after disabling") Signed-off-by: Shyam Prasad N <sprasad@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 4cdad80 commit 993d1c3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/smb/client/smb2pdu.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ cifs_chan_skip_or_disable(struct cifs_ses *ses,
195195
pserver = server->primary_server;
196196
cifs_signal_cifsd_for_reconnect(pserver, false);
197197
skip_terminate:
198-
mutex_unlock(&ses->session_mutex);
199198
return -EHOSTDOWN;
200199
}
201200

0 commit comments

Comments
 (0)