mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
Fix error reporting when machine type probe fails
Avoid overwriting the real error message with a generic OOM failure message, when machine type probe fails * src/qemu/qemu_driver.c: Don't overwrite error
This commit is contained in:
parent
31c698d76d
commit
f0bbf96047
@ -6256,10 +6256,8 @@ qemudCanonicalizeMachineDirect(virDomainDefPtr def, char **canonical)
|
||||
virCapsGuestMachinePtr *machines = NULL;
|
||||
int i, nmachines = 0;
|
||||
|
||||
if (qemuCapsProbeMachineTypes(def->emulator, &machines, &nmachines) < 0) {
|
||||
virReportOOMError();
|
||||
if (qemuCapsProbeMachineTypes(def->emulator, &machines, &nmachines) < 0)
|
||||
return -1;
|
||||
}
|
||||
|
||||
for (i = 0; i < nmachines; i++) {
|
||||
if (!machines[i]->canonical)
|
||||
|
Loading…
x
Reference in New Issue
Block a user