diff options
author | Patrick Caulfield <pcaulfie@redhat.com> | 2006-10-12 05:41:22 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-10-12 17:11:33 -0400 |
commit | 4c5e1b1a8c3f591b21f09001d6748296ddff33b8 (patch) | |
tree | 225fe2e8fd0ee7fbb182190a808b09e0a330291b /fs/dlm | |
parent | c312c4fdc88514dd9522b7858eb879e610aeb9b1 (diff) |
[DLM] fix iovec length in recvmsg
The DLM always passes the iovec length as 1, this is wrong when the circular
buffer wraps round.
Signed-Off-By: Patrick Caulfield <pcaulfie@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/dlm')
-rw-r--r-- | fs/dlm/lowcomms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c index 7bcea7c5addb..867f93d0417e 100644 --- a/fs/dlm/lowcomms.c +++ b/fs/dlm/lowcomms.c | |||
@@ -548,7 +548,7 @@ static int receive_from_sock(void) | |||
548 | } | 548 | } |
549 | len = iov[0].iov_len + iov[1].iov_len; | 549 | len = iov[0].iov_len + iov[1].iov_len; |
550 | 550 | ||
551 | r = ret = kernel_recvmsg(sctp_con.sock, &msg, iov, 1, len, | 551 | r = ret = kernel_recvmsg(sctp_con.sock, &msg, iov, msg.msg_iovlen, len, |
552 | MSG_NOSIGNAL | MSG_DONTWAIT); | 552 | MSG_NOSIGNAL | MSG_DONTWAIT); |
553 | if (ret <= 0) | 553 | if (ret <= 0) |
554 | goto out_close; | 554 | goto out_close; |