]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
cifs: fix computation for MAX_SMB2_HDR_SIZE
authorRonnie Sahlberg <lsahlber@redhat.com>
Tue, 29 Jan 2019 02:46:16 +0000 (12:46 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Mar 2019 07:18:56 +0000 (08:18 +0100)
[ Upstream commit 58d15ed1203f4d858c339ea4d7dafa94bd2a56d3 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/smb2pdu.h

index 05c322d9e1e7483e6280142c39db97efd9a7e8e9..c68c31c9fedf50590874de6edc631f577700045c 100644 (file)
@@ -82,8 +82,8 @@
 
 #define NUMBER_OF_SMB2_COMMANDS        0x0013
 
-/* 4 len + 52 transform hdr + 64 hdr + 56 create rsp */
-#define MAX_SMB2_HDR_SIZE 0x00b0
+/* 52 transform hdr + 64 hdr + 88 create rsp */
+#define MAX_SMB2_HDR_SIZE 204
 
 #define SMB2_PROTO_NUMBER __constant_cpu_to_le32(0x424d53fe)