projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4aa9fc2
)
cifs: fix computation for MAX_SMB2_HDR_SIZE
author
Ronnie Sahlberg
<
[email protected]
>
Tue, 29 Jan 2019 02:46:16 +0000
(12:46 +1000)
committer
Steve French
<
[email protected]
>
Tue, 29 Jan 2019 22:15:08 +0000
(16:15 -0600)
The size of the fixed part of the create response is 88 bytes not 56.
Signed-off-by: Ronnie Sahlberg <
[email protected]
>
Signed-off-by: Steve French <
[email protected]
>
Reviewed-by: Pavel Shilovsky <
[email protected]
>
fs/cifs/smb2pdu.h
patch
|
blob
|
history
diff --git
a/fs/cifs/smb2pdu.h
b/fs/cifs/smb2pdu.h
index 7a2d0a2255e621f97929cbe2c795f615f963dcd2..e9cc6775df21bde48e0e6e4b6eb181bbb528814e 100644
(file)
--- a/
fs/cifs/smb2pdu.h
+++ b/
fs/cifs/smb2pdu.h
@@
-84,8
+84,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 cpu_to_le32(0x424d53fe)
#define SMB2_TRANSFORM_PROTO_NUM cpu_to_le32(0x424d53fd)