mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 17:11:46 +00:00
new helper: memcpy_to_msg()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
e169371823
commit
7eab8d9e8a
9 changed files with 13 additions and 9 deletions
|
@ -418,7 +418,7 @@ unlock:
|
|||
}
|
||||
release_sock(sk);
|
||||
chunk = min_t(unsigned int, skb->len, size);
|
||||
if (memcpy_toiovec(msg->msg_iov, skb->data, chunk)) {
|
||||
if (memcpy_to_msg(msg, skb->data, chunk)) {
|
||||
skb_queue_head(&sk->sk_receive_queue, skb);
|
||||
if (copied == 0)
|
||||
copied = -EFAULT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue