mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[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 <[email protected]> Signed-off-by: Steven Whitehouse <[email protected]>
This commit is contained in:
parent
c312c4fdc8
commit
4c5e1b1a8c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue