Commit aded9dfa authored by Cole Robinson's avatar Cole Robinson Committed by Dr. David Alan Gilbert
Browse files

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: 5aaac467 "migration: savevm: consult migration blockers"

Signed-off-by: default avatarCole Robinson <crobinso@redhat.com>
Message-Id: <b991a4d0e6c4253bc08b2794c6084be55fc72e1d.1554851834.git.crobinso@redhat.com>
Reviewed-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: default avatarJuan Quintela <quintela@redhat.com>
Signed-off-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
parent f2dd7edd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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()) {