mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
smb311: correct incorrect offset field in compression header
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>
This commit is contained in:
parent
5b142b37c7
commit
68c5818a27
@ -227,7 +227,7 @@ struct smb2_compression_hdr {
|
|||||||
__le32 OriginalCompressedSegmentSize;
|
__le32 OriginalCompressedSegmentSize;
|
||||||
__le16 CompressionAlgorithm;
|
__le16 CompressionAlgorithm;
|
||||||
__le16 Flags;
|
__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 */
|
/* uncompressed SMB2 header (READ or WRITE) goes here */
|
||||||
/* compressed data goes here */
|
/* compressed data goes here */
|
||||||
} __packed;
|
} __packed;
|
||||||
|
Loading…
Reference in New Issue
Block a user