9119d9
From ee92f1ba8fda2eaff8e94d315a33c9a9746b5650 Mon Sep 17 00:00:00 2001
9119d9
Message-Id: <ee92f1ba8fda2eaff8e94d315a33c9a9746b5650@dist-git>
9119d9
From: Peter Krempa <pkrempa@redhat.com>
9119d9
Date: Wed, 1 Oct 2014 15:23:05 +0200
9119d9
Subject: [PATCH] qemu: json: Fix missing break in error reporting function
9119d9
9119d9
https://bugzilla.redhat.com/show_bug.cgi?id=1113116
9119d9
9119d9
Otherwise we'd report a different error.
9119d9
9119d9
Reported by John Ferlan's coverity run.
9119d9
9119d9
(cherry picked from commit 58699b77eee9e45cbf8c9f08291fc298aae37eea)
9119d9
9119d9
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
9119d9
---
9119d9
 src/qemu/qemu_monitor_json.c | 1 +
9119d9
 1 file changed, 1 insertion(+)
9119d9
9119d9
diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c
9119d9
index afb713d..2227744 100644
9119d9
--- a/src/qemu/qemu_monitor_json.c
9119d9
+++ b/src/qemu/qemu_monitor_json.c
9119d9
@@ -2102,6 +2102,7 @@ qemuMonitorJSONReportBlockExtentError(qemuMonitorBlockExtentError error)
9119d9
         virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
9119d9
                        _("blockstats stats entry was not in "
9119d9
                          "expected format"));
9119d9
+        break;
9119d9
 
9119d9
     case QEMU_MONITOR_BLOCK_EXTENT_ERROR_NOOFFSET:
9119d9
         virReportError(VIR_ERR_INTERNAL_ERROR,
9119d9
-- 
9119d9
2.1.2
9119d9