]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
qemu: json: Fix missing break in error reporting function
authorPeter Krempa <pkrempa@redhat.com>
Wed, 1 Oct 2014 12:33:09 +0000 (14:33 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 1 Oct 2014 12:33:09 +0000 (14:33 +0200)
Otherwise we'd report a different error.

Reported by John Ferlan's coverity run.

src/qemu/qemu_monitor_json.c

index 5f00101386b011d02cc298e8a80e1cb85f0d73b6..7fcf2456b8b9dd05b7f82d1029bc7f9073c5ab3b 100644 (file)
@@ -2128,6 +2128,7 @@ qemuMonitorJSONReportBlockExtentError(qemuMonitorBlockExtentError error)
         virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
                        _("blockstats stats entry was not in "
                          "expected format"));
+        break;
 
     case QEMU_MONITOR_BLOCK_EXTENT_ERROR_NOOFFSET:
         virReportError(VIR_ERR_INTERNAL_ERROR,