aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/compat
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@xensource.com>2007-08-06 13:19:44 +0100
committerIan Campbell <ian.campbell@xensource.com>2007-08-06 13:19:44 +0100
commit44cdadd1cd9fc7e081498d4b453b52ffd4cc6380 (patch)
treeddcaedba2bacbfa3cff73ddfc6941cbe2f87be53 /xen/common/compat
parent647f41c70db5a47e3376d2ad0892e43814aaf4db (diff)
downloadxen-44cdadd1cd9fc7e081498d4b453b52ffd4cc6380.tar.gz
xen-44cdadd1cd9fc7e081498d4b453b52ffd4cc6380.tar.bz2
xen-44cdadd1cd9fc7e081498d4b453b52ffd4cc6380.zip
[32on64] Copy the right grant table status code back to the guest.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Diffstat (limited to 'xen/common/compat')
-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;
}
}