]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: don't crash on a tpm device with no backends
authorJán Tomko <jtomko@redhat.com>
Thu, 9 May 2013 10:33:11 +0000 (12:33 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 9 May 2013 12:57:00 +0000 (14:57 +0200)
commit9fc6618e749971061806cbdb4fe821de60b45adc
tree1b6d190aa259365ba535f224b09b03da66d57629
parenta3f71eb908ee3c676dbbc96512f6527559a5f177
conf: don't crash on a tpm device with no backends

Print an error instead of crashing when a TPM device without
a backend is specified.

Add a test for tpm device with no backend, which should fail
with a parse error.

https://bugzilla.redhat.com/show_bug.cgi?id=961252
(cherry picked from commit 1d96440a060869fb4c26ce35fe165e6e68168885)
src/conf/domain_conf.c
tests/qemuxml2argvdata/qemuxml2argv-tpm-no-backend-invalid.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c