Skip to content

Commit 58d15ed

Browse files
Ronnie Sahlbergsmfrench
authored andcommitted
cifs: fix computation for MAX_SMB2_HDR_SIZE
The size of the fixed part of the create response is 88 bytes not 56. Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
1 parent 4aa9fc2 commit 58d15ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/cifs/smb2pdu.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@
8484

8585
#define NUMBER_OF_SMB2_COMMANDS 0x0013
8686

87-
/* 4 len + 52 transform hdr + 64 hdr + 56 create rsp */
88-
#define MAX_SMB2_HDR_SIZE 0x00b0
87+
/* 52 transform hdr + 64 hdr + 88 create rsp */
88+
#define MAX_SMB2_HDR_SIZE 204
8989

9090
#define SMB2_PROTO_NUMBER cpu_to_le32(0x424d53fe)
9191
#define SMB2_TRANSFORM_PROTO_NUM cpu_to_le32(0x424d53fd)

0 commit comments

Comments
 (0)