xc_linux_save was broken in 13594:30af6cfdb05c. Unbreak it.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
This commit is contained in:
kaf24@localhost.localdomain committed 2007-01-30 13:39:37 +00:00
1 parent 00baa47b02
commit 7883dce659
1 file changed
+2 -2
+2 -2
View File
@@ -998,7 +998,7 @@ int xc_linux_save(int xc_handle, int io_fd, uint32_t dom, uint32_t max_iters,
}
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_fd, uint32_t dom, uint32_t max_iters,
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++ )
{
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.