[libvirt] [PATCH] storage: fix crash when listing volumes or undefining a pool

Martin Kletzander mkletzan at redhat.com
Thu Jan 9 15:49:07 UTC 2014


On Thu, Jan 09, 2014 at 08:41:11AM -0700, Eric Blake wrote:
> On 01/09/2014 08:35 AM, Martin Kletzander wrote:
> > The commit cad3cf9a951d26da9d2ee0f5b52fb1a2dbb74af1 introduced a crash
> > due to wrong order of parameters being passed to the function.  When
> > deleting an element, the function decreased the iterator instead of
> > count and if listing volumes after that (or undefining the pool, NULL
> > was being dereferenced.
> > 
> > Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
> > ---
> >  src/storage/storage_driver.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> ACK.
> 

Pushed, thanks.
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140109/11f3be1d/attachment-0001.sig>


More information about the libvir-list mailing list