xc_linux_save was broken in 13594:30af6cfdb05c. Unbreak it
PATCH 1/1 xc_linux_save was broken in 13594:30af6cfdb05c. Unbreak it
# HG changeset patch
# User Brendan Cully <[email protected]>
# Date 1170123626 28800
# Node ID 127de2224d9658cb7bc5c213c3427b0e9b72fda6 # Parent 5bb0840984936749b4e99f53931d72a8579d302c xc_linux_save was broken in 13594:30af6cfdb05c. Unbreak it.
Signed-off-by Brendan Cully <[email protected]>
tools/libxc/xc_linux_save.c +2 -2
@@ -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++ ) {