[libvirt] [PATCH v2] storage: Fix coverity warning
Eric Blake
eblake at redhat.com
Tue Aug 20 15:38:09 UTC 2013
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130820/642ffa3f/attachment-0001.sig>
More information about the libvir-list
mailing list