Commit 0820e15a authored by Steve French's avatar Steve French

[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: default avatarSteve French <sfrench@us.ibm.com>
parent 0f36b018
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment