mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
qemu: Fix crash when defining XML with bogus emulator
We weren't checking for failure of qemuCaps lookup
This commit is contained in:
parent
79ba107670
commit
3d92a000ff
@ -1247,7 +1247,9 @@ qemuDomainDefPostParse(virDomainDefPtr def,
|
||||
!(def->emulator = virDomainDefGetDefaultEmulator(def, caps)))
|
||||
return ret;
|
||||
|
||||
qemuCaps = virQEMUCapsCacheLookup(driver->qemuCapsCache, def->emulator);
|
||||
if (!(qemuCaps = virQEMUCapsCacheLookup(driver->qemuCapsCache,
|
||||
def->emulator)))
|
||||
goto cleanup;
|
||||
|
||||
if (qemuDomainDefAddDefaultDevices(def, qemuCaps) < 0)
|
||||
goto cleanup;
|
||||
|
Loading…
x
Reference in New Issue
Block a user