projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f66d2b
)
Revert "cifs: advertise the right receive buffer size to the server"
author
Steve French
<sfrench@us.ibm.com>
Wed, 3 Aug 2011 03:17:43 +0000
(
03:17
+0000)
committer
Steve French
<sfrench@us.ibm.com>
Wed, 3 Aug 2011 03:17:43 +0000
(
03:17
+0000)
This reverts commit
c4d3396b261473ded6f370edd1e79ba34e089d7e
.
Problems discovered with readdir to Samba due to
not accounting for header size properly with this change
fs/cifs/sess.c
patch
|
blob
|
history
diff --git
a/fs/cifs/sess.c
b/fs/cifs/sess.c
index 243d5872051319c78e680fc0965f2119bab8749d..d3e619692ee0f0437e26d9d91d61545859f248bc 100644
(file)
--- a/
fs/cifs/sess.c
+++ b/
fs/cifs/sess.c
@@
-124,8
+124,7
@@
static __u32 cifs_ssetup_hdr(struct cifs_ses *ses, SESSION_SETUP_ANDX *pSMB)
/* that we use in next few lines */
/* Note that header is initialized to zero in header_assemble */
pSMB->req.AndXCommand = 0xFF;
- pSMB->req.MaxBufferSize = cpu_to_le16(min_t(u32, CIFSMaxBufSize - 4,
- USHRT_MAX));
+ pSMB->req.MaxBufferSize = cpu_to_le16(ses->server->maxBuf);
pSMB->req.MaxMpxCount = cpu_to_le16(ses->server->maxReq);
pSMB->req.VcNumber = get_next_vcnum(ses);