]> xenbits.xensource.com Git - 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:25:11 +0000 (14:25 +0200)
commit1d96440a060869fb4c26ce35fe165e6e68168885
tree04528e7c90538e4e87c6da10552aa7fd93167a8b
parent470d5c4654b512d101a8665754b13866925eeaa2
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
src/conf/domain_conf.c
tests/qemuxml2argvdata/qemuxml2argv-tpm-no-backend-invalid.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c