]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Move disk driver name validation into disk validation callback
authorPeter Krempa <pkrempa@redhat.com>
Tue, 10 Apr 2018 14:38:22 +0000 (16:38 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 18 Apr 2018 14:14:13 +0000 (16:14 +0200)
commitca2943ad9a9a4c0829fac793be9849996d38b5ea
tree38cb6c4fcf43400ec50a6654f1e335e1c8aba1d9
parent97a467b3c49df51ba21a2317a7cf2d70208255b2
qemu: Move disk driver name validation into disk validation callback

There were two places where we'd check this independently. Move it to
the disk definition validation callback. This also fixes possible use of
NULL in a printf for network storage.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_command.c
src/qemu/qemu_domain.c
src/qemu/qemu_hotplug.c