[libvirt] [PATCH 5/8] Fix thinko in PCI hostdev detach

Mark McLoughlin markmc at redhat.com
Mon Aug 17 14:10:18 UTC 2009


* src/qemu_driver.c: Add missing break statement in
  qemudDomainDetachHostDevice()
---
 src/qemu_driver.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/qemu_driver.c b/src/qemu_driver.c
index 187497f..048e1c0 100644
--- a/src/qemu_driver.c
+++ b/src/qemu_driver.c
@@ -5894,6 +5894,7 @@ static int qemudDomainDetachHostDevice(virConnectPtr conn,
     switch (hostdev->source.subsys.type) {
     case VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_PCI:
         ret = qemudDomainDetachHostPciDevice(conn, vm, dev);
+        break;
     default:
         qemudReportError(conn, dom, NULL, VIR_ERR_NO_SUPPORT,
                          _("hostdev subsys type '%s' not supported"),
-- 
1.6.2.5




More information about the libvir-list mailing list