From: Al Viro Date: Sat, 18 Feb 2017 04:13:25 +0000 (-0500) Subject: switch memcpy_from_msg() to copy_from_iter_full() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3073f070a137e140e3faefa87f2446a8deffc07f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git switch memcpy_from_msg() to copy_from_iter_full() Signed-off-by: Al Viro --- 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)