diff options
author | Steve French <sfrench@us.ibm.com> | 2006-01-23 15:50:04 -0500 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2006-01-23 15:50:04 -0500 |
commit | 0820e15a35b3cf37caadf550ddb7c75a7a77afd0 (patch) | |
tree | fe8bfed3b8cec723de70460320e7ad23f02afb93 /fs | |
parent | 0f36b018b2e314d45af86449f1a97facb1fbe300 (diff) |
[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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/cifs/transport.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index 7b98792150ea..b12cb8a7da7c 100644 --- a/fs/cifs/transport.c +++ b/fs/cifs/transport.c | |||
@@ -498,7 +498,6 @@ SendReceive2(const unsigned int xid, struct cifsSesInfo *ses, | |||
498 | else | 498 | else |
499 | *pRespBufType = CIFS_SMALL_BUFFER; | 499 | *pRespBufType = CIFS_SMALL_BUFFER; |
500 | iov[0].iov_len = receive_len + 4; | 500 | iov[0].iov_len = receive_len + 4; |
501 | iov[1].iov_len = 0; | ||
502 | 501 | ||
503 | dump_smb(midQ->resp_buf, 80); | 502 | dump_smb(midQ->resp_buf, 80); |
504 | /* convert the length into a more usable form */ | 503 | /* convert the length into a more usable form */ |