]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: report errors when parsing video acceleration
authorJonathon Jongsma <jjongsma@redhat.com>
Thu, 14 Nov 2019 21:59:16 +0000 (15:59 -0600)
committerCole Robinson <crobinso@redhat.com>
Fri, 15 Nov 2019 18:30:56 +0000 (13:30 -0500)
commit026c2ffb50b92da35317f89e0336d2b43fe849d8
treef9620b73f6b3e0a8c88044c71dbafb6ea1bccc6d
parent754e4c24ec4e5e07547da95b044b35e648508022
conf: report errors when parsing video acceleration

Since this function is now only called when an 'acceleration' element is
present in the xml, any failure to parse the element will be considered
an error.

Previously, we detected some types of errors, but we would only log an
error (virReportError()), but still return a partially-specified accel
object to the caller. This patch returns NULL for all parsing errors and
reports that error back up to the caller.

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