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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 May 2024 14:22:49 +0000 (16:22 +0200)
[ Upstream commit f49af462875a0922167cf301cf126cd04009070e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/common/smb2pdu.h

index a233a24352b1fa2f0d4f62df656200200eb012f2..10a9e20eec43f7f4ec72461463e3c3b5ec97b658 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;