aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorPatrick Caulfield <pcaulfie@redhat.com>2007-03-13 13:08:45 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2007-05-01 04:10:34 -0400
commit89adc934f3f96600e7f31447426c7e99d62c5460 (patch)
tree7bf6c34cf9898b8c78f76cecd170f946bd0516a9 /fs
parent5c7342d894973636f03270673e1fb7b908a421a8 (diff)
[DLM] Fix uninitialised variable in receiving
The length of the second element of the kvec array was not initialised before being added to the first one. This could cause invalid lengths to be passed to kernel_recvmsg Signed-Off-By: Patrick Caulfield <pcaulfie@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/dlm/lowcomms-tcp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/dlm/lowcomms-tcp.c b/fs/dlm/lowcomms-tcp.c
index 07e0a122c32f..9bfe7fb721e6 100644
--- a/fs/dlm/lowcomms-tcp.c
+++ b/fs/dlm/lowcomms-tcp.c
@@ -299,6 +299,7 @@ static int receive_from_sock(struct connection *con)
299 */ 299 */
300 iov[0].iov_len = con->cb.base - cbuf_data(&con->cb); 300 iov[0].iov_len = con->cb.base - cbuf_data(&con->cb);
301 iov[0].iov_base = page_address(con->rx_page) + cbuf_data(&con->cb); 301 iov[0].iov_base = page_address(con->rx_page) + cbuf_data(&con->cb);
302 iov[1].iov_len = 0;
302 nvec = 1; 303 nvec = 1;
303 304
304 /* 305 /*