Re: [PATCH 05/26] qemu: Resolve Coverity REVERSE_INULL

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

 



On 09/05/14 00:26, John Ferlan wrote:
> Coverity complains that checking for !domlist after setting doms = domlist
> and making a deref of doms just above
> 
> It seems the call in question was intended to me made in the case that
> 'doms' was passed in and not when the virDomainObjListExport() call
> allocated domlist and already called virConnectGetAllDomainStatsCheckACL().
> 
> Thus rather than check for !domlist - check that "doms != domlist" in
> order to avoid the Coverity message.
> 
> Signed-off-by: John Ferlan <jferlan@xxxxxxxxxx>
> ---
>  src/qemu/qemu_driver.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

False positive, but fair enough.

ACK.

Peter


Attachment: signature.asc
Description: OpenPGP digital 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]