[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:
Ian Campbell committed 2007-08-06 13:19:44 +01:00
1 parent 647f41c70d
commit 44cdadd1cd
1 file changed
+2 -2
+2 -2
View File
@@ -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;
}
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.