Received: from eggs.gnu.org ([209.51.188.92]:55676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hE8ge-0001Fd-WF for qemu-devel@nongnu.org; Wed, 10 Apr 2019 04:34:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hE8gd-0004jU-KG for qemu-devel@nongnu.org; Wed, 10 Apr 2019 04:34:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43998) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hE8gd-0004iF-Aw for qemu-devel@nongnu.org; Wed, 10 Apr 2019 04:34:27 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F2BD9307B964 for ; Wed, 10 Apr 2019 08:34:23 +0000 (UTC) Date: Wed, 10 Apr 2019 09:34:19 +0100 From: "Dr. David Alan Gilbert" Message-ID: <20190410083418.GC2980@work-vm> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH] migration: savevm: fix error code with migration blockers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cole Robinson Cc: qemu-devel@nongnu.org, quintela@redhat.com, Paolo Bonzini * Cole Robinson (crobinso@redhat.com) wrote: > 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 Thanks, this was in 3.1.0 so isn't a 4.0 regression, so it'll have to wait for 4.1. Reviewed-by: Dr. David Alan Gilbert > --- > migration/savevm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/migration/savevm.c b/migration/savevm.c > index 34bcad3807..a3dae4cf02 100644 > --- a/migration/savevm.c > +++ b/migration/savevm.c > @@ -2544,7 +2544,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()) { > -- > 2.21.0 > -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK