diff options
author | Mark Syms <mark.syms@citrix.com> | 2018-05-24 11:47:31 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-06-26 02:51:25 +0300 |
commit | d49d23fd34915199cfc84c8d971429c387185fb8 (patch) | |
tree | 127e97da0a6e93090772f26bf426455febf32494 | |
parent | 194f11ffa3cb14a13df0c30bf35e6b25dd0b09a6 (diff) | |
download | linux-d49d23fd34915199cfc84c8d971429c387185fb8.tar.xz |
CIFS: 511c54a2f69195b28afb9dd119f03787b1625bb4 adds a check for session expiry
commit d81243c697ffc71f983736e7da2db31a8be0001f 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>
-rw-r--r-- | fs/cifs/smb2ops.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c index e1e4653c5d52..4ee32488ff74 100644 --- a/fs/cifs/smb2ops.c +++ b/fs/cifs/smb2ops.c @@ -1277,10 +1277,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; } |