]> xenbits.xensource.com Git - libvirt.git/commit
qemu: do not crash on USB address with no port and invalid bus
authorJán Tomko <jtomko@redhat.com>
Wed, 12 Apr 2017 10:40:57 +0000 (12:40 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 13 Apr 2017 08:45:28 +0000 (10:45 +0200)
commitb003b9781b6ae633cfe4fdf6b9620ca246fa2432
treeb61959bdcdc52add84459944e366b3cc19ac2cf1
parent9d49c20653e28f0f2a90bea1f6cdf05ccbe8d6af
qemu: do not crash on USB address with no port and invalid bus

Properly error out when the user requests a port from a bus
that does not have a controller present in the domain XML.

https://bugzilla.redhat.com/show_bug.cgi?id=1441589
src/conf/domain_addr.c
tests/qemuxml2argvdata/qemuxml2argv-usb-bus-missing.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c