smb: common: fix fields sizes in compression_pattern_payload_v1

[ 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>
This commit is contained in:
Enzo Matsumiya 2024-03-08 18:34:10 -03:00 committed by Greg Kroah-Hartman
parent e8aee4f4d2
commit fdd938b2b4

View 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;