]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_hotplug: Properly check for qemuMonitorDelDevice retval
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 12 Mar 2019 08:28:18 +0000 (09:28 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 13 Mar 2019 13:09:09 +0000 (14:09 +0100)
commit8b71b0c727398469b95d025e3ec92b881969412f
treec8ed678866ffb1661701fa4d8b8e2e5c0b611138
parent1dd24167b874b7463ac5f6cf40d6436ca7f76c42
qemu_hotplug: Properly check for qemuMonitorDelDevice retval

Luckily, the function returns only 0 or -1 so all the checks work
as expected. Anyway, our rule is that a positive value means
success so if the function ever returns a positive value these
checks will fail. Make them check for a negative value properly.

At the same time fix qemuDomainDetachExtensionDevice() reval
check. It is somewhat related to the aim of this patch.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_hotplug.c