Commit 3073f070 authored by Al Viro's avatar Al Viro

switch memcpy_from_msg() to copy_from_iter_full()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent dc88e3b4
...@@ -3113,7 +3113,7 @@ struct sk_buff *pskb_extract(struct sk_buff *skb, int off, int to_copy, ...@@ -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) 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) static inline int memcpy_to_msg(struct msghdr *msg, void *data, int len)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment