]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Resolve issues in failure path
authorJohn Ferlan <jferlan@redhat.com>
Tue, 6 May 2014 18:16:48 +0000 (14:16 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 7 May 2014 14:21:18 +0000 (10:21 -0400)
commite1e4483c90442a2125cbf94dc28bf61eab0b1485
tree476524c5d8bb42b0261a916c6f2e1d284f53fd07
parent99f4def63b80e28b226ae84fe74c60f9e568fe4f
storage: Resolve issues in failure path

https://bugzilla.redhat.com/show_bug.cgi?id=1092882

Refactoring in commit id '0c2305b3' resulted in the wrong storage
volume object being passed to the new storageVolDeleteInternal().
It should have passed 'voldef' which is the address found in the
pool->volumes.objs[i] array.  By passing 'voldef', the DeleteInternal
code will find and remove the voldef from the volumes.objs[] list.
src/storage/storage_driver.c