Re: [Qemu-devel] [PATCH 2/3] qemu-img: fix img_compare() flags error path

2014-08-26 Thread Max Reitz
On 26.08.2014 20:17, Stefan Hajnoczi wrote: If img_compare() fails to parse the cache flags the goto out3 code path will call qemu_progress_end(). Make sure we actually call qemu_progress_init() first. Reported-by: Markus Armbruster Signed-off-by: Stefan Hajnoczi --- qemu-img.c | 6 +++---

[Qemu-devel] [PATCH 2/3] qemu-img: fix img_compare() flags error path

2014-08-26 Thread Stefan Hajnoczi
If img_compare() fails to parse the cache flags the goto out3 code path will call qemu_progress_end(). Make sure we actually call qemu_progress_init() first. Reported-by: Markus Armbruster Signed-off-by: Stefan Hajnoczi --- qemu-img.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)