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

Re: [libvirt] [PATCH v2] storage: Fix coverity warning



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


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