Skip to content

Commit

Permalink
[CIFS] Do not zero non-existent iovec in SendReceive response process…
Browse files Browse the repository at this point in the history
…ing.

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>
  • Loading branch information
Steve French committed Jan 23, 2006
1 parent 0f36b01 commit 0820e15
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/cifs/transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,6 @@ SendReceive2(const unsigned int xid, struct cifsSesInfo *ses,
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 */
Expand Down

0 comments on commit 0820e15

Please sign in to comment.