From: Steve French Date: Tue, 19 Mar 2024 20:59:38 +0000 (-0500) Subject: smb311: correct incorrect offset field in compression header X-Git-Tag: v6.6.32~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a9aa7a776efcf899b875fd573e316a5272809cba;p=platform%2Fkernel%2Flinux-riscv.git smb311: correct incorrect offset field in compression header [ Upstream commit 68c5818a27afcb5cdddab041b82e9d47c996cb6a ] The offset field in the compression header is 32 bits not 16. Reviewed-by: Bharath SM Reported-by: Enzo Matsumiya Signed-off-by: Steve French Signed-off-by: Sasha Levin --- diff --git a/fs/smb/common/smb2pdu.h b/fs/smb/common/smb2pdu.h index 61c6e72ccddc..735614d233a0 100644 --- a/fs/smb/common/smb2pdu.h +++ b/fs/smb/common/smb2pdu.h @@ -227,7 +227,7 @@ struct smb2_compression_hdr { __le32 OriginalCompressedSegmentSize; __le16 CompressionAlgorithm; __le16 Flags; - __le16 Offset; /* this is the size of the uncompressed SMB2 header below */ + __le32 Offset; /* this is the size of the uncompressed SMB2 header below */ /* uncompressed SMB2 header (READ or WRITE) goes here */ /* compressed data goes here */ } __packed;