Re: [PATCH 2/4] qemuDomainAttachDeviceLiveAndConfig: Don't overwrite @ret

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

 



On Fri, Apr 26, 2019 at 15:52:21 +0200, Michal Privoznik wrote:
> If we're attaching a device to both inactive and live XML then
> @ret is overwritten which may result in incorrect return value.
> For instance, if attaching to inactive XML succeeds, @ret is
> assigned value of zero and control proceeds to attaching the
> device to live XML. Here, if say
> virDomainDeviceValidateAliasForHotplug() fails the control jumps
> over to 'cleanup' label and zero is returned indicating success.
> 
> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
> ---
>  src/qemu/qemu_driver.c | 23 +++++++++++------------
>  1 file changed, 11 insertions(+), 12 deletions(-)

ACK

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