Re: [PATCH 1/5] qemu_hotplug: Properly check for qemuMonitorDelDevice retval

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 12, 2019 at 16:13:16 +0100, Michal Privoznik wrote:
> 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.
> 
> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
> ---
>  src/qemu/qemu_hotplug.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

The commit message suggests that only qemuMonitorDelDevice calls are
fixed but this commit also fixes one other call. While the call is
slightly related to this series qemuDomainDetachExtensionDevice properly
handles return from qemuMonitorDelDevice and thus changing return value
from there would not impact the code.

ACK if you mention qemuDomainDetachExtensionDevice

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux