mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemuBuildMemoryDeviceStr: check return of qemuBuildDeviceAddressStr
Although the function currently only returns errors for PCI addresses, check it here too, in case that changes in the future. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
3d016477cc
commit
f9a7b84f72
@ -3317,7 +3317,8 @@ qemuBuildMemoryDeviceStr(const virDomainDef *def,
|
||||
virBufferAsprintf(&buf, "memdev=mem%s,id=%s",
|
||||
mem->info.alias, mem->info.alias);
|
||||
|
||||
qemuBuildDeviceAddressStr(&buf, def, &mem->info, qemuCaps);
|
||||
if (qemuBuildDeviceAddressStr(&buf, def, &mem->info, qemuCaps) < 0)
|
||||
return NULL;
|
||||
break;
|
||||
|
||||
case VIR_DOMAIN_MEMORY_MODEL_NONE:
|
||||
|
Loading…
x
Reference in New Issue
Block a user