]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Don't use NULL path from qemuDomainGetHostdevPath v6.0.0-rc1
authorJiri Denemark <jdenemar@redhat.com>
Thu, 9 Jan 2020 14:40:14 +0000 (15:40 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 10 Jan 2020 08:12:57 +0000 (09:12 +0100)
commite0127260fb4a22d591f3b8d0326021506fc0504e
tree1d0366d618d65630ac41f0133b5551321b42d1bc
parent143b71a8ecb75251b5e8e0bf29c189c683a48d25
qemu: Don't use NULL path from qemuDomainGetHostdevPath

Commit v5.10.0-290-g3a4787a301 refactored qemuDomainGetHostdevPath to
return a single path rather than an array of paths. When the function is
called on a missing device, it will now return NULL in @path rather than
a NULL array with zero items and the callers need to be adapted
properly.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_cgroup.c
src/qemu/qemu_domain.c