Browse Source

[CIFS] Do not zero non-existent iovec in SendReceive response processing.

Could cause memory leak in some readpaths depending on what junk followed it in the stack.

Signed-off-by: Steve French <sfrench@us.ibm.com>
Steve French 19 years ago
parent
commit
0820e15a35
1 changed files with 0 additions and 1 deletions
  1. 0 1
      fs/cifs/transport.c

+ 0 - 1
fs/cifs/transport.c

@@ -498,7 +498,6 @@ SendReceive2(const unsigned int xid, struct cifsSesInfo *ses,
 			else
 			else
 				*pRespBufType = CIFS_SMALL_BUFFER;
 				*pRespBufType = CIFS_SMALL_BUFFER;
 			iov[0].iov_len = receive_len + 4;
 			iov[0].iov_len = receive_len + 4;
-			iov[1].iov_len = 0;
 
 
 			dump_smb(midQ->resp_buf, 80);
 			dump_smb(midQ->resp_buf, 80);
 			/* convert the length into a more usable form */
 			/* convert the length into a more usable form */