summaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2pdu.h
diff options
context:
space:
mode:
authorSteve French <stfrench@microsoft.com>2021-07-15 06:32:09 +0200
committerSteve French <stfrench@microsoft.com>2021-07-16 02:07:04 +0200
commit4511d7c8f440ab13520601141d67d13cb074620a (patch)
tree0659b1e0c78fa6c5f080a2869a2959bafaa5049a /fs/cifs/smb2pdu.h
parentcifs: added WARN_ON for all the count decrements (diff)
downloadlinux-4511d7c8f440ab13520601141d67d13cb074620a.tar.xz
linux-4511d7c8f440ab13520601141d67d13cb074620a.zip
SMB3.1.1: fix mount failure to some servers when compression enabled
When sending the compression context to some servers, they rejected the SMB3.1.1 negotiate protocol because they expect the compression context to have a data length of a multiple of 8. Reviewed-by: Shyam Prasad N <sprasad@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to '')
-rw-r--r--fs/cifs/smb2pdu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h
index 4b27cb9105fd..e9cac7970b66 100644
--- a/fs/cifs/smb2pdu.h
+++ b/fs/cifs/smb2pdu.h
@@ -394,6 +394,7 @@ struct smb2_compression_capabilities_context {
__u16 Padding;
__u32 Flags;
__le16 CompressionAlgorithms[3];
+ __u16 Pad; /* Some servers require pad to DataLen multiple of 8 */
/* Check if pad needed */
} __packed;