]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: fix domain device validation
authorJonathon Jongsma <jjongsma@redhat.com>
Fri, 18 Oct 2019 15:30:09 +0000 (10:30 -0500)
committerCole Robinson <crobinso@redhat.com>
Thu, 14 Nov 2019 16:37:50 +0000 (11:37 -0500)
commited831437af7c03e6c6e8143b0ee68d34ae94af25
treeba96739b6be515b082f9d60ffa778a07d0317864
parent2552752f0b6504a80f6306e5aae2c7063d24f1ab
qemu: fix domain device validation

When the virDomainCapsDeviceDefValidate() function returned an error
status (-1), we were aborting the function early, but returning the
default return value (0). This patch properly returns an error in that
case.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
src/qemu/qemu_domain.c