WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] xc_linux_save was broken in 13594:30af6cfdb05c. Unbr

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] xc_linux_save was broken in 13594:30af6cfdb05c. Unbreak it
From: Brendan Cully <brendan@xxxxxxxxx>
Date: Mon, 29 Jan 2007 18:20:32 -0800
Delivery-date: Mon, 29 Jan 2007 18:20:17 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Brendan Cully <brendan@xxxxxxxxx>
# Date 1170123626 28800
# Node ID 127de2224d9658cb7bc5c213c3427b0e9b72fda6
# Parent  5bb0840984936749b4e99f53931d72a8579d302c
xc_linux_save was broken in 13594:30af6cfdb05c. Unbreak it.

Signed-off-by: Brendan Cully <brendan@xxxxxxxxx>

diff -r 5bb084098493 -r 127de2224d96 tools/libxc/xc_linux_save.c
--- a/tools/libxc/xc_linux_save.c       Mon Jan 29 13:22:21 2007 +0000
+++ b/tools/libxc/xc_linux_save.c       Mon Jan 29 18:20:26 2007 -0800
@@ -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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] xc_linux_save was broken in 13594:30af6cfdb05c. Unbreak it, Brendan Cully <=