summaryrefslogtreecommitdiff
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-02-17 23:13:25 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2017-04-21 13:57:16 -0400
commit3073f070a137e140e3faefa87f2446a8deffc07f (patch)
tree87c5884833d821e0202798d80e057ef53221e0f0 /include/linux/skbuff.h
parentdc88e3b4c8c9c473c5e0bc65bcf0d3666ee1e022 (diff)
downloadlwn-3073f070a137e140e3faefa87f2446a8deffc07f.tar.gz
lwn-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)