[linux-cifs-client] 1.40 cifs tar.gz on project download

Steven Scholz steven.scholz at imc-berlin.de
Mon Feb 13 14:46:07 GMT 2006


Steven French wrote:
> 
> This is probably closer to what you want:
>       http://svn.samba.org/samba/ftp/cifs-cvs/cifs-1.40a-2.6.13.tar.gz
> There are two minor, but important fixes that are not in the various 1.40a
> tar.gz's (that are in the cifs development tree, and hopefully mainline
> soon as soon as Linus gets back)
> 
> The one line fix removing the set which can go off the end of the stack in
> transport.c (iov[1].len = 0)  and the set of the default wsize to 52K (for
> servers which support large write X) are not in the various
> cifs1.40a.tar.gz

Did you mean this one?

--- a/fs/cifs/transport.c
+++ b/fs/cifs/transport.c
@@ -498,7 +498,6 @@ SendReceive2(const unsigned int xid, str
else
	*pRespBufType = CIFS_SMALL_BUFFER;
	iov[0].iov_len = receive_len + 4;
-	iov[1].iov_len = 0;

	dump_smb(midQ->resp_buf, 80);
	/* convert the length into a more usable form */

Not sure if I understood correctly. Do we need the line "iov[1].iov_len
= 0;". Or do we have to remove that line?

--
Steven Scholz


More information about the linux-cifs-client mailing list