[PATCH 6.6 057/102] smb: common: fix fields sizes in compression_pattern_payload_v1

Greg Kroah-Hartman
2024-05-23T13:26:26Z

From: Enzo Matsumiya <ematsumiya@suse.de>

[ 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 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/smb/common/smb2pdu.h b/fs/smb/common/smb2pdu.h
index a233a24352b1f..10a9e20eec43f 100644
--- a/fs/smb/common/smb2pdu.h
+++ b/fs/smb/common/smb2pdu.h
@@ -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;
--
2.43.0