switch getfrag callbacks to ..._full() primitives
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -609,15 +609,15 @@ int ping_getfrag(void *from, char *to,
|
||||
fraglen -= sizeof(struct icmphdr);
|
||||
if (fraglen < 0)
|
||||
BUG();
|
||||
if (csum_and_copy_from_iter(to + sizeof(struct icmphdr),
|
||||
if (!csum_and_copy_from_iter_full(to + sizeof(struct icmphdr),
|
||||
fraglen, &pfh->wcheck,
|
||||
&pfh->msg->msg_iter) != fraglen)
|
||||
&pfh->msg->msg_iter))
|
||||
return -EFAULT;
|
||||
} else if (offset < sizeof(struct icmphdr)) {
|
||||
BUG();
|
||||
} else {
|
||||
if (csum_and_copy_from_iter(to, fraglen, &pfh->wcheck,
|
||||
&pfh->msg->msg_iter) != fraglen)
|
||||
if (!csum_and_copy_from_iter_full(to, fraglen, &pfh->wcheck,
|
||||
&pfh->msg->msg_iter))
|
||||
return -EFAULT;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user