Re: [PATCH v2] storage: Fix coverity warning

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

 



On 08/20/2013 09:28 AM, Osier Yang wrote:
> Introduced by commit e0139e30444:
> 
> 1777 	    /* Updating pool metadata */
> 
> (40) Event var_deref_op: Dereferencing null pointer "newvol".
>      Also see events: [assign_zero]
> 
> 1778 	    pool->def->allocation += newvol->allocation;
> 1779 	    pool->def->available -= newvol->allocation;
> ---
>  src/storage/storage_driver.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)

ACK - this turned out cleaner.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

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]