summaryrefslogtreecommitdiffstats
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
parentdc88e3b4c8c9c473c5e0bc65bcf0d3666ee1e022 (diff)
downloadop-kernel-dev-3073f070a137e140e3faefa87f2446a8deffc07f.zip
op-kernel-dev-3073f070a137e140e3faefa87f2446a8deffc07f.tar.gz
switch memcpy_from_msg() to copy_from_iter_full()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-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 c776abd..53383bc 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)
OpenPOWER on IntegriCloud