diff options
author | Vladimir Sementsov-Ogievskiy | 2018-05-30 13:24:24 +0200 |
---|---|---|
committer | Dr. David Alan Gilbert | 2018-06-15 15:40:56 +0200 |
commit | a36f6ff46f115672cf86d0e1e7cdb1c2fa4d304b (patch) | |
tree | ab8350aec11085ec7aa12d1042cba9838208404f | |
parent | migration: Poison ramblock loops in migration (diff) | |
download | qemu-a36f6ff46f115672cf86d0e1e7cdb1c2fa4d304b.tar.gz qemu-a36f6ff46f115672cf86d0e1e7cdb1c2fa4d304b.tar.xz qemu-a36f6ff46f115672cf86d0e1e7cdb1c2fa4d304b.zip |
migration/block-dirty-bitmap: fix dirty_bitmap_load
dirty_bitmap_load_header return code is obtained but not handled. Fix
this.
Bug was introduced in b35ebdf076d697bc
"migration: add postcopy migration of dirty bitmaps" with the whole
function.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20180530112424.204835-1-vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
-rw-r--r-- | migration/block-dirty-bitmap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/migration/block-dirty-bitmap.c b/migration/block-dirty-bitmap.c index eeccaff34b..3bafbbdc4c 100644 --- a/migration/block-dirty-bitmap.c +++ b/migration/block-dirty-bitmap.c @@ -672,6 +672,9 @@ static int dirty_bitmap_load(QEMUFile *f, void *opaque, int version_id) do { ret = dirty_bitmap_load_header(f, &s); + if (ret < 0) { + return ret; + } if (s.flags & DIRTY_BITMAP_MIG_FLAG_START) { ret = dirty_bitmap_load_start(f, &s); |