Skip to content

Commit a9aa7a7

Browse files
Steve Frenchgregkh
authored andcommitted
smb311: correct incorrect offset field in compression header
[ Upstream commit 68c5818 ] The offset field in the compression header is 32 bits not 16. Reviewed-by: Bharath SM <bharathsm@microsoft.com> Reported-by: Enzo Matsumiya <ematsumiya@suse.de> Signed-off-by: Steve French <stfrench@microsoft.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent c1f3c82 commit a9aa7a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/smb/common/smb2pdu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ struct smb2_compression_hdr {
227227
__le32 OriginalCompressedSegmentSize;
228228
__le16 CompressionAlgorithm;
229229
__le16 Flags;
230-
__le16 Offset; /* this is the size of the uncompressed SMB2 header below */
230+
__le32 Offset; /* this is the size of the uncompressed SMB2 header below */
231231
/* uncompressed SMB2 header (READ or WRITE) goes here */
232232
/* compressed data goes here */
233233
} __packed;

0 commit comments

Comments
 (0)