diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2020-04-13 22:52:49 +0200 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2020-05-07 17:40:24 +0100 |
commit | 58602676dfd00f519248d4936b0711b7967cbf62 (patch) | |
tree | f77b19ca82d9974e5b71cc20723043676340b008 /migration/colo.c | |
parent | 979da8b357903ee8a43017cbf640f43460d1e2f0 (diff) | |
download | qemu-58602676dfd00f519248d4936b0711b7967cbf62.zip qemu-58602676dfd00f519248d4936b0711b7967cbf62.tar.gz qemu-58602676dfd00f519248d4936b0711b7967cbf62.tar.bz2 |
migration/colo: Add missing error-propagation code
Running the coccinelle script produced:
$ spatch \
--macro-file scripts/cocci-macro-file.h --include-headers \
--sp-file scripts/coccinelle/find-missing-error_propagate.cocci \
--keep-comments --smpl-spacing --dir .
HANDLING: ./migration/colo.c
[[manual check required: error_propagate() might be missing in migrate_set_block_enabled() ./migration/colo.c:439:4]]
Add the missing error_propagate() after review.
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20200413205250.687-1-f4bug@amsat.org>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration/colo.c')
-rw-r--r-- | migration/colo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/migration/colo.c b/migration/colo.c index 1b34937..d015d4f 100644 --- a/migration/colo.c +++ b/migration/colo.c @@ -443,6 +443,9 @@ static int colo_do_checkpoint_transaction(MigrationState *s, /* Disable block migration */ migrate_set_block_enabled(false, &local_err); + if (local_err) { + goto out; + } qemu_mutex_lock_iothread(); #ifdef CONFIG_REPLICATION |