mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 02:02:28 +09:00
CIFS: 511c54a2f6 adds a check for session expiry
commit d81243c697 upstream.
Handle this additional status in the same way as SESSION_EXPIRED.
Signed-off-by: Mark Syms <mark.syms@citrix.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ae62f35def
commit
2a8737336d
@@ -1256,10 +1256,11 @@ smb2_is_session_expired(char *buf)
|
||||
{
|
||||
struct smb2_sync_hdr *shdr = get_sync_hdr(buf);
|
||||
|
||||
if (shdr->Status != STATUS_NETWORK_SESSION_EXPIRED)
|
||||
if (shdr->Status != STATUS_NETWORK_SESSION_EXPIRED &&
|
||||
shdr->Status != STATUS_USER_SESSION_DELETED)
|
||||
return false;
|
||||
|
||||
cifs_dbg(FYI, "Session expired\n");
|
||||
cifs_dbg(FYI, "Session expired or deleted\n");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user