From: Steve French Date: Mon, 23 Jan 2006 20:50:04 +0000 (-0800) Subject: [CIFS] Do not zero non-existent iovec in SendReceive response processing. X-Git-Tag: v2.6.16-rc2~1^2~10^2~5 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0820e15a35b3cf37caadf550ddb7c75a7a77afd0;p=linux-2.6 [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 --- diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index 7b98792150..b12cb8a7da 100644 --- a/fs/cifs/transport.c +++ b/fs/cifs/transport.c @@ -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 */