]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
smb: common: fix fields sizes in compression_pattern_payload_v1
authorEnzo Matsumiya <ematsumiya@suse.de>
Fri, 8 Mar 2024 21:34:10 +0000 (18:34 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 11 Mar 2024 00:52:42 +0000 (19:52 -0500)
See protocol documentation in MS-SMB2 section 2.2.42.2.2

Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/common/smb2pdu.h

index 57f2343164a34d81ad9816c0dec7c8994b66beb0..17f1bddb95d06320ade25e852bed4f7a55652032 100644 (file)
@@ -238,8 +238,8 @@ struct smb2_compression_transform_hdr_chained {
 
 /* See MS-SMB2 2.2.42.2.2 */
 struct compression_pattern_payload_v1 {
-       __le16  Pattern;
-       __le16  Reserved1;
+       __u8    Pattern;
+       __u8    Reserved1;
        __le16  Reserved2;
        __le32  Repetitions;
 } __packed;