guest_handle_add_offset(xatpb->errs, start);
xatpb->size -= start;
+ if ( !guest_handle_okay(xatpb->idxs, xatpb->size) ||
+ !guest_handle_okay(xatpb->gpfns, xatpb->size) ||
+ !guest_handle_okay(xatpb->errs, xatpb->size) )
+ return -EFAULT;
+
while ( xatpb->size > done )
{
xen_ulong_t idx;
if ( start_extent != (typeof(xatpb.size))start_extent )
return -EDOM;
- if ( copy_from_guest(&xatpb, arg, 1) ||
- !guest_handle_okay(xatpb.idxs, xatpb.size) ||
- !guest_handle_okay(xatpb.gpfns, xatpb.size) ||
- !guest_handle_okay(xatpb.errs, xatpb.size) )
+ if ( copy_from_guest(&xatpb, arg, 1) )
return -EFAULT;
/* This mapspace is unsupported for this hypercall. */