Skip to content
Snippets Groups Projects
Commit 90c9b90a authored by Michal Privoznik's avatar Michal Privoznik
Browse files

qemu_validate: Fix how qemuValidateDomainDeviceDefZPCIAddress() is called


To make the code future proof, the rest of the
qemuValidateDomainDeviceDefAddress() has to be executed (even
though there is nothing there yet) instead of returning directly.

Signed-off-by: default avatarMichal Privoznik <mprivozn@redhat.com>
Reviewed-by: default avatarAndrea Bolognani <abologna@redhat.com>
parent b150fbc4
No related branches found
No related tags found
No related merge requests found
......@@ -1057,7 +1057,9 @@ qemuValidateDomainDeviceDefAddress(const virDomainDeviceDef *dev,
switch ((virDomainDeviceAddressType) info->type) {
case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_PCI:
return qemuValidateDomainDeviceDefZPCIAddress(info, qemuCaps);
if (qemuValidateDomainDeviceDefZPCIAddress(info, qemuCaps) < 0)
return -1;
break;
case VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE:
/* Address validation might happen before we have had a chance to
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment