summaryrefslogtreecommitdiffstats
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
authorAl Viro2017-02-18 05:13:25 +0100
committerAl Viro2017-04-21 19:57:16 +0200
commit3073f070a137e140e3faefa87f2446a8deffc07f (patch)
tree87c5884833d821e0202798d80e057ef53221e0f0 /include/linux/skbuff.h
parentrds: make use of iov_iter_revert() (diff)
downloadkernel-qcow2-linux-3073f070a137e140e3faefa87f2446a8deffc07f.tar.gz
kernel-qcow2-linux-3073f070a137e140e3faefa87f2446a8deffc07f.tar.xz
kernel-qcow2-linux-3073f070a137e140e3faefa87f2446a8deffc07f.zip
switch memcpy_from_msg() to copy_from_iter_full()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r--include/linux/skbuff.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index c776abd86937..53383bce27f1 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -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)