Received: from eggs.gnu.org ([2001:4830:134:3::10]:51571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIebf-0003qk-Rc for qemu-devel@nongnu.org; Mon, 11 Jan 2016 10:42:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIebe-0000Om-FQ for qemu-devel@nongnu.org; Mon, 11 Jan 2016 10:42:07 -0500 From: Markus Armbruster References: <1450779107-26765-1-git-send-email-famz@redhat.com> <56796093.4080407@redhat.com> <567B2E85.1000009@redhat.com> Date: Mon, 11 Jan 2016 16:41:58 +0100 In-Reply-To: <567B2E85.1000009@redhat.com> (Max Reitz's message of "Thu, 24 Dec 2015 00:30:13 +0100") Message-ID: <8760z0unqx.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] block/qapi: Clear err for further error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: Kevin Wolf , Fam Zheng , John Snow , qemu-devel@nongnu.org, qemu-block@nongnu.org Max Reitz writes: > On 22.12.2015 15:39, John Snow wrote: >> >> >> On 12/22/2015 05:11 AM, Fam Zheng wrote: >>> Since a5002d5 (block/qapi: allow best-effort query) we don't return at >>> this error, however err must be cleared before passing to >>> bdrv_query_snapshot_info_list below, as required by error API. >>> >>> Signed-off-by: Fam Zheng >>> --- >>> block/qapi.c | 1 + >>> 1 file changed, 1 insertion(+) >>> >>> diff --git a/block/qapi.c b/block/qapi.c >>> index fecac25..58d3975 100644 >>> --- a/block/qapi.c >>> +++ b/block/qapi.c >>> @@ -250,6 +250,7 @@ void bdrv_query_image_info(BlockDriverState *bs, >>> g_free(backing_filename2); >>> backing_filename2 = NULL; >>> error_free(err); >>> + err = NULL; >>> } >>> >>> /* Always report the full_backing_filename if present, even if it's the >>> >> >> Sorry Markus, I've failed you. There, for the grace of God, go I. >> Reviewed-by: John Snow > > As did I by giving an R-b and applying it. > > Let us hereby atone for our sins: > > https://github.com/XanClic/qemu/commits/block > > > I hope the spirit of christmas will make Markus forgive us. Happy new year!