32 lines
1.4 KiB
Diff
32 lines
1.4 KiB
Diff
# HG changeset 15693 patch
|
|
# User Ian Campbell <ian.campbell@xensource.com>
|
|
# Date 1186402784 -3600
|
|
# Node ID c229802cedbb3f43276a2ba03dfed7ef4e81ba81
|
|
# Parent b82e6818fb31c6373ccd3e840ef2f9719d5f21a3
|
|
[32on64] Copy the right grant table status code back to the guest.
|
|
|
|
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
|
|
|
|
Index: 2007-05-14/xen/common/compat/grant_table.c
|
|
===================================================================
|
|
--- 2007-05-14.orig/xen/common/compat/grant_table.c 2007-05-03 09:45:09.000000000 +0200
|
|
+++ 2007-05-14/xen/common/compat/grant_table.c 2007-08-09 10:01:54.000000000 +0200
|
|
@@ -153,7 +153,7 @@ int compat_grant_table_op(unsigned int c
|
|
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;
|
|
}
|
|
}
|
|
@@ -191,7 +191,7 @@ int compat_grant_table_op(unsigned int c
|
|
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;
|
|
}
|
|
}
|