]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Don't return memory device config on error in qemuBuildMemoryBackendStr
authorPeter Krempa <pkrempa@redhat.com>
Mon, 23 Mar 2015 13:17:42 +0000 (14:17 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 23 Mar 2015 13:20:53 +0000 (14:20 +0100)
commit104011ea8b49dd8a0eea6bc88de90ef76c6d8273
treebc27e092bc25eaf382f7cbf96992696ff435b338
parentc35b277671efd95c3142e01246990044b7aca9e2
qemu: Don't return memory device config on error in qemuBuildMemoryBackendStr

In the last section if the function determines that the config is
invalid when QEMU doesn't support the memory device the JSON config
object would be returned even if it doesn't make sense.

Assign the object to be returned only on success.
src/qemu/qemu_command.c