ia64/xen-unstable
changeset 15717:c229802cedbb
[32on64] Copy the right grant table status code back to the guest.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
author | Ian Campbell <ian.campbell@xensource.com> |
---|---|
date | Mon Aug 06 13:19:44 2007 +0100 (2007-08-06) |
parents | b82e6818fb31 |
children | c2d4efc2c8f9 |
files | xen/common/compat/grant_table.c |
line diff
1.1 --- a/xen/common/compat/grant_table.c Mon Aug 06 11:16:14 2007 +0100 1.2 +++ b/xen/common/compat/grant_table.c Mon Aug 06 13:19:44 2007 +0100 1.3 @@ -161,7 +161,7 @@ int compat_grant_table_op(unsigned int c 1.4 while ( n-- ) 1.5 { 1.6 guest_handle_add_offset(xfer, -1); 1.7 - if ( __copy_field_to_guest(xfer, nat.xfer, status) ) 1.8 + if ( __copy_field_to_guest(xfer, nat.xfer + n, status) ) 1.9 rc = -EFAULT; 1.10 } 1.11 } 1.12 @@ -199,7 +199,7 @@ int compat_grant_table_op(unsigned int c 1.13 while ( n-- ) 1.14 { 1.15 guest_handle_add_offset(copy, -1); 1.16 - if ( __copy_field_to_guest(copy, nat.copy, status) ) 1.17 + if ( __copy_field_to_guest(copy, nat.copy + n, status) ) 1.18 rc = -EFAULT; 1.19 } 1.20 }