]> git.baikalelectronics.ru Git - kernel.git/commitdiff
CIFS: a52397f4924fdd3156030d631957f8313ebde7e2 adds a check for session expiry, statu...
authorMark Syms <mark.syms@citrix.com>
Thu, 24 May 2018 08:47:31 +0000 (09:47 +0100)
committerSteve French <stfrench@microsoft.com>
Fri, 1 Jun 2018 14:14:13 +0000 (09:14 -0500)
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>
fs/cifs/smb2ops.c

index 20cc67c3a6d009578fc8374cda7d8d1a78a564e6..f2bce73e23a02f3ba50442e44ff445f62c35e4be 100644 (file)
@@ -1323,10 +1323,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;
 }