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

[Xen-changelog] [xen-unstable] xc_linux_save was broken in 13594:30af6cfdb05c. Unbreak it.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxxx
# Date 1170164377 0
# Node ID 2efe681d1194e2a6aa00f0087118a0329c30a28d
# Parent  4bef31174332cb01cf34a74959376a2a7d1b1bce
xc_linux_save was broken in 13594:30af6cfdb05c. Unbreak it.
Signed-off-by: Brendan Cully <brendan@xxxxxxxxx>
---
 tools/libxc/xc_linux_save.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 4bef31174332 -r 2efe681d1194 tools/libxc/xc_linux_save.c
--- a/tools/libxc/xc_linux_save.c       Tue Jan 30 13:37:43 2007 +0000
+++ b/tools/libxc/xc_linux_save.c       Tue Jan 30 13:39:37 2007 +0000
@@ -998,7 +998,7 @@ int xc_linux_save(int xc_handle, int io_
             }
 
             for ( j = 0; j < batch; j++ )
-                ((uint32_t *)pfn_type)[i] = pfn_type[i];
+                ((uint32_t *)pfn_type)[j] = pfn_type[j];
             if ( xc_get_pfn_type_batch(xc_handle, dom, batch,
                                        (uint32_t *)pfn_type) )
             {
@@ -1006,7 +1006,7 @@ int xc_linux_save(int xc_handle, int io_
                 goto out;
             }
             for ( j = batch-1; j >= 0; j-- )
-                pfn_type[i] = ((uint32_t *)pfn_type)[i];
+                pfn_type[j] = ((uint32_t *)pfn_type)[j];
 
             for ( j = 0; j < batch; j++ )
             {

_______________________________________________
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®.