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

2013-08-20 Thread Eric Blake
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

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

2013-08-20 Thread Osier Yang
Introduced by commit e0139e30444: 1777/* Updating pool metadata */ (40) Event var_deref_op: Dereferencing null pointer "newvol". Also see events: [assign_zero] 1778pool->def->allocation += newvol->allocation; 1779pool->def->available -= newvol->allocation; --- src/s