Skip to content

Commit 6e40698

Browse files
committed
Merge tag '5.17-rc8-smb3-fix' of git://git.samba.org/sfrench/cifs-2.6
Pull cifs fix from Steve French: "Small fix for regression in multiuser mounts. The additional improvements suggested by Ronnie to make the server and session status handling code easier to read can wait for the 5.18 merge window." * tag '5.17-rc8-smb3-fix' of git://git.samba.org/sfrench/cifs-2.6: smb3: fix incorrect session setup check for multiuser mounts
2 parents 6c4bcd8 + e3ee9fb commit 6e40698

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/cifs/connect.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3924,7 +3924,8 @@ cifs_setup_session(const unsigned int xid, struct cifs_ses *ses,
39243924

39253925
/* only send once per connect */
39263926
spin_lock(&cifs_tcp_ses_lock);
3927-
if (server->tcpStatus != CifsNeedSessSetup) {
3927+
if ((server->tcpStatus != CifsNeedSessSetup) &&
3928+
(ses->status == CifsGood)) {
39283929
spin_unlock(&cifs_tcp_ses_lock);
39293930
return 0;
39303931
}

0 commit comments

Comments
 (0)