mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-10-04 18:20:06 +00:00
migration/block-dirty-bitmap: fix dirty_bitmap_load
dirty_bitmap_load_header return code is obtained but not handled. Fix this. Bug was introduced inb35ebdf076
"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> (cherry picked from commita36f6ff46f
) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
This commit is contained in:
parent
2cb041a82d
commit
d8a7ec1deb
|
@ -672,6 +672,9 @@ static int dirty_bitmap_load(QEMUFile *f, void *opaque, int version_id)
|
||||||
|
|
||||||
do {
|
do {
|
||||||
ret = dirty_bitmap_load_header(f, &s);
|
ret = dirty_bitmap_load_header(f, &s);
|
||||||
|
if (ret < 0) {
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
if (s.flags & DIRTY_BITMAP_MIG_FLAG_START) {
|
if (s.flags & DIRTY_BITMAP_MIG_FLAG_START) {
|
||||||
ret = dirty_bitmap_load_start(f, &s);
|
ret = dirty_bitmap_load_start(f, &s);
|
||||||
|
|
Loading…
Reference in a new issue