]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: add missing break in qemuDomainDeviceCalculatePCIConnectFlags
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 22 Feb 2017 17:33:59 +0000 (17:33 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 23 Feb 2017 10:11:16 +0000 (10:11 +0000)
One of the conditions in qemuDomainDeviceCalculatePCIConnectFlags
was missing a break that could result it in falling through to
an incorrect codepath.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/qemu/qemu_domain_address.c

index f8995c946d1b6c39ce0fb72290e24a45463fba08..20f4ba25bbe6d771b7e95d4854795b0983cb8b1e 100644 (file)
@@ -553,6 +553,7 @@ qemuDomainDeviceCalculatePCIConnectFlags(virDomainDeviceDefPtr dev,
             return pciFlags;
         }
     }
+        break;
 
     case VIR_DOMAIN_DEVICE_FS:
         /* the only type of filesystem so far is virtio-9p-pci */