projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c312c4f
)
[DLM] fix iovec length in recvmsg
author
Patrick Caulfield
<pcaulfie@redhat.com>
Thu, 12 Oct 2006 09:41:22 +0000
(10:41 +0100)
committer
Steven Whitehouse
<swhiteho@redhat.com>
Thu, 12 Oct 2006 21:11:33 +0000
(17:11 -0400)
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>
fs/dlm/lowcomms.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/dlm/lowcomms.c
b/fs/dlm/lowcomms.c
index 7bcea7c5addba24e724926c75f7e9ab46cebeb38..867f93d0417e3fa1ca11e0e7e4b0363aa02d4a48 100644
(file)
--- a/
fs/dlm/lowcomms.c
+++ b/
fs/dlm/lowcomms.c
@@
-548,7
+548,7
@@
static int receive_from_sock(void)
}
len = iov[0].iov_len + iov[1].iov_len;
- r = ret = kernel_recvmsg(sctp_con.sock, &msg, iov,
1
, len,
+ r = ret = kernel_recvmsg(sctp_con.sock, &msg, iov,
msg.msg_iovlen
, len,
MSG_NOSIGNAL | MSG_DONTWAIT);
if (ret <= 0)
goto out_close;