projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f36b01
)
[CIFS] Do not zero non-existent iovec in SendReceive response processing.
author
Steve French
<sfrench@us.ibm.com>
Mon, 23 Jan 2006 20:50:04 +0000
(12:50 -0800)
committer
Steve French
<sfrench@us.ibm.com>
Mon, 23 Jan 2006 20:50:04 +0000
(12:50 -0800)
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>
fs/cifs/transport.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/cifs/transport.c
b/fs/cifs/transport.c
index 7b98792150ea7ebba3d449e994906483dcadf4a3..b12cb8a7da7c87ec2fe01561dd1e5891f674c1ec 100644
(file)
--- 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 */