Skip to content

Commit

Permalink
Revert "cifs: advertise the right receive buffer size to the server"
Browse files Browse the repository at this point in the history
This reverts commit c4d3396.

Problems discovered with readdir to Samba due to
not accounting for header size properly with this change
  • Loading branch information
Steve French committed Aug 3, 2011
1 parent 5f66d2b commit fc05a78
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/cifs/sess.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit fc05a78

Please sign in to comment.