ia64/xen-unstable

changeset 13738:2efe681d1194

xc_linux_save was broken in 13594:30af6cfdb05c. Unbreak it.
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
author kaf24@localhost.localdomain
date Tue Jan 30 13:39:37 2007 +0000 (2007-01-30)
parents 4bef31174332
children b33a7d45d50a
files tools/libxc/xc_linux_save.c
line diff
     1.1 --- a/tools/libxc/xc_linux_save.c	Tue Jan 30 13:37:43 2007 +0000
     1.2 +++ b/tools/libxc/xc_linux_save.c	Tue Jan 30 13:39:37 2007 +0000
     1.3 @@ -998,7 +998,7 @@ int xc_linux_save(int xc_handle, int io_
     1.4              }
     1.5  
     1.6              for ( j = 0; j < batch; j++ )
     1.7 -                ((uint32_t *)pfn_type)[i] = pfn_type[i];
     1.8 +                ((uint32_t *)pfn_type)[j] = pfn_type[j];
     1.9              if ( xc_get_pfn_type_batch(xc_handle, dom, batch,
    1.10                                         (uint32_t *)pfn_type) )
    1.11              {
    1.12 @@ -1006,7 +1006,7 @@ int xc_linux_save(int xc_handle, int io_
    1.13                  goto out;
    1.14              }
    1.15              for ( j = batch-1; j >= 0; j-- )
    1.16 -                pfn_type[i] = ((uint32_t *)pfn_type)[i];
    1.17 +                pfn_type[j] = ((uint32_t *)pfn_type)[j];
    1.18  
    1.19              for ( j = 0; j < batch; j++ )
    1.20              {