new helper: memcpy_to_msg()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro
2014-04-06 21:51:23 -04:00
parent e169371823
commit 7eab8d9e8a
9 changed files with 13 additions and 9 deletions

View File

@@ -1760,7 +1760,7 @@ static int dn_recvmsg(struct kiocb *iocb, struct socket *sock,
if ((chunk + copied) > size)
chunk = size - copied;
if (memcpy_toiovec(msg->msg_iov, skb->data, chunk)) {
if (memcpy_to_msg(msg, skb->data, chunk)) {
rv = -EFAULT;
break;
}