switch memcpy_from_msg() to copy_from_iter_full()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro 2017-02-17 23:13:25 -05:00
parent dc88e3b4c8
commit 3073f070a1
1 changed files with 1 additions and 1 deletions

View File

@ -3113,7 +3113,7 @@ struct sk_buff *pskb_extract(struct sk_buff *skb, int off, int to_copy,
static inline int memcpy_from_msg(void *data, struct msghdr *msg, int len)
{
return copy_from_iter(data, len, &msg->msg_iter) == len ? 0 : -EFAULT;
return copy_from_iter_full(data, len, &msg->msg_iter) ? 0 : -EFAULT;
}
static inline int memcpy_to_msg(struct msghdr *msg, void *data, int len)