[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [32on64] Copy the right grant table status code back to the guest.



# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxxxxx>
# 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@xxxxxxxxxxxxx>
---
 xen/common/compat/grant_table.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r b82e6818fb31 -r c229802cedbb xen/common/compat/grant_table.c
--- a/xen/common/compat/grant_table.c   Mon Aug 06 11:16:14 2007 +0100
+++ b/xen/common/compat/grant_table.c   Mon Aug 06 13:19:44 2007 +0100
@@ -161,7 +161,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;
                 }
             }
@@ -199,7 +199,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;
                 }
             }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.