mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
[32on64] Copy the right grant table status code back to the guest.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
This commit is contained in:
1 parent
647f41c70d
commit
44cdadd1cd
1 file changed
+2
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||