Message ID | 4f2de508a7668a5c70ee586c9cc4b3e570fb833b.1465541858.git.amit.shah@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/migration/ram.c b/migration/ram.c index 844ea46..5f929d6 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -1557,7 +1557,9 @@ static int postcopy_send_discard_bm_ram(MigrationState *ms, } else { discard_length = zero - one; } - postcopy_discard_send_range(ms, pds, one, discard_length); + if (discard_length) { + postcopy_discard_send_range(ms, pds, one, discard_length); + } current = one + discard_length; } else { current = one;