qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] block/qapi: Clear err for further error
@ 2015-12-22 10:11 Fam Zheng
  2015-12-22 14:39 ` John Snow
  0 siblings, 1 reply; 4+ messages in thread
From: Fam Zheng @ 2015-12-22 10:11 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kevin Wolf, jsnow, Markus Armbruster, qemu-block, mreitz

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 <famz@redhat.com>
---
 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
-- 
2.4.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-01-11 15:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-22 10:11 [Qemu-devel] [PATCH] block/qapi: Clear err for further error Fam Zheng
2015-12-22 14:39 ` John Snow
2015-12-23 23:30   ` Max Reitz
2016-01-11 15:41     ` Markus Armbruster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).