put iov_iter into msghdr
Note that the code _using_ ->msg_iter at that point will be very unhappy with anything other than unshifted iovec-backed iov_iter. We still need to convert users to proper primitives. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -20,7 +20,8 @@ static __inline__ int udplite_getfrag(void *from, char *to, int offset,
|
||||
int len, int odd, struct sk_buff *skb)
|
||||
{
|
||||
struct msghdr *msg = from;
|
||||
return memcpy_fromiovecend(to, msg->msg_iov, offset, len);
|
||||
/* XXX: stripping const */
|
||||
return memcpy_fromiovecend(to, (struct iovec *)msg->msg_iter.iov, offset, len);
|
||||
}
|
||||
|
||||
/* Designate sk as UDP-Lite socket */
|
||||
|
Reference in New Issue
Block a user