From: Cole Robinson Date: Tue, 9 Apr 2019 23:19:57 +0000 (-0400) Subject: migration: savevm: fix error code with migration blockers X-Git-Tag: pull-nvme-20200902~987^2~11 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=aded9dfa74a83f8b235df1bd3a874e48e197c78e;p=qemu-nvme.git 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 Message-Id: Reviewed-by: Dr. David Alan Gilbert Reviewed-by: Juan Quintela Signed-off-by: Dr. David Alan Gilbert --- 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()) {