aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xen/common/compat/grant_table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/common/compat/grant_table.c b/xen/common/compat/grant_table.c
index 342e35622d..882d435a65 100644
--- a/xen/common/compat/grant_table.c
+++ b/xen/common/compat/grant_table.c
@@ -161,7 +161,7 @@ int compat_grant_table_op(unsigned int cmd,
while ( n-- )
{
guest_handle_add_offset(xfer, -1);
- if ( __copy_field_to_guest(xfer, nat.xfer, status) )
+ if ( __copy_field_to_guest(xfer, nat.xfer + n, status) )
rc = -EFAULT;
}
}
@@ -199,7 +199,7 @@ int compat_grant_table_op(unsigned int cmd,
while ( n-- )
{
guest_handle_add_offset(copy, -1);
- if ( __copy_field_to_guest(copy, nat.copy, status) )
+ if ( __copy_field_to_guest(copy, nat.copy + n, status) )
rc = -EFAULT;
}
}