]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
switch memcpy_from_msg() to copy_from_iter_full()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 18 Feb 2017 04:13:25 +0000 (23:13 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 21 Apr 2017 17:57:16 +0000 (13:57 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/skbuff.h

index c776abd86937f52b002773728b5611746f199281..53383bce27f126e88c607e6fce901f5f6a241070 100644 (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)