smb3: fix incorrect session setup check for multiuser mounts
authorSteve French <stfrench@microsoft.com>
Thu, 17 Mar 2022 03:08:43 +0000 (22:08 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 17 Mar 2022 03:48:55 +0000 (22:48 -0500)
commite3ee9fb22652f228225c352bd4fabec330cac5f0
treebcb84017d47ae8557fd9adf14e3b1d05f45b90ba
parent09688c0166e76ce2fb85e86b9d99be8b0084cdf9
smb3: fix incorrect session setup check for multiuser mounts

A recent change to how the SMB3 server (socket) and session status
is managed regressed multiuser mounts by changing the check
for whether session setup is needed to the socket (TCP_Server_info)
structure instead of the session struct (cifs_ses). Add additional
check in cifs_setup_sesion to fix this.

Fixes: 73f9bfbe3d81 ("cifs: maintain a state machine for tcp/smb/tcon sessions")
Reported-by: Ronnie Sahlberg <lsahlber@redhat.com>
Acked-by: Ronnie Sahlberg <lsahlber@redhat.com>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c