diff options
| author | Cole Robinson <crobinso@redhat.com> | 2019-04-09 19:19:57 -0400 |
|---|---|---|
| committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2019-05-14 17:33:35 +0100 |
| commit | aded9dfa74a83f8b235df1bd3a874e48e197c78e (patch) | |
| tree | 9ae9b13239eb7718f79641e91d94ebf3607c0c6f | |
| parent | f2dd7eddf240fe77ab08ffb251f1abca79f9463a (diff) | |
| download | focaccia-qemu-aded9dfa74a83f8b235df1bd3a874e48e197c78e.tar.gz focaccia-qemu-aded9dfa74a83f8b235df1bd3a874e48e197c78e.zip | |
migration: savevm: fix error code with migration blockers
The only caller that checks the error code is looking for != 0, so returning false is incorrect. Fixes: 5aaac467938 "migration: savevm: consult migration blockers" Signed-off-by: Cole Robinson <crobinso@redhat.com> Message-Id: <b991a4d0e6c4253bc08b2794c6084be55fc72e1d.1554851834.git.crobinso@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
| -rw-r--r-- | migration/savevm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/migration/savevm.c b/migration/savevm.c index 587fec8ce2..81a9a2ef30 100644 --- a/migration/savevm.c +++ b/migration/savevm.c @@ -2542,7 +2542,7 @@ int save_snapshot(const char *name, Error **errp) AioContext *aio_context; if (migration_is_blocked(errp)) { - return false; + return ret; } if (!replay_can_snapshot()) { |