diff options
author | 2015-02-04 20:46:55 -0800 | |
---|---|---|
committer | 2015-02-04 20:46:55 -0800 | |
commit | f2683b743f2334ef49a5361bf596dd1fbd2c9be4 (patch) | |
tree | 7f53b2614742238e966ba8a815ef6c5079422ee2 /include/net/udplite.h | |
parent | tcp: do not pace pure ack packets (diff) | |
parent | vhost: vhost_scsi_handle_vq() should just use copy_from_user() (diff) | |
download | wireguard-linux-f2683b743f2334ef49a5361bf596dd1fbd2c9be4.tar.xz wireguard-linux-f2683b743f2334ef49a5361bf596dd1fbd2c9be4.zip |
Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
More iov_iter work from Al Viro.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/udplite.h')
-rw-r--r-- | include/net/udplite.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/net/udplite.h b/include/net/udplite.h index ae7c8d1fbcad..80761938b9a7 100644 --- a/include/net/udplite.h +++ b/include/net/udplite.h @@ -20,8 +20,7 @@ static __inline__ int udplite_getfrag(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb) { struct msghdr *msg = from; - /* XXX: stripping const */ - return memcpy_fromiovecend(to, (struct iovec *)msg->msg_iter.iov, offset, len); + return copy_from_iter(to, len, &msg->msg_iter) != len ? -EFAULT : 0; } /* Designate sk as UDP-Lite socket */ |