LVM2/lib/cache lvmcache.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2008-06-06 12:43:41
Modified files:
lib/cache : lvmcache.c
Log message:
fix _free_vginfo not to remove a ref to a *different* vginfo from the vgid cache
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/cache/lvmcache.c.diff?cvsroot=lvm2&r1=1.55&r2=1.56
lib/cache/lvmcache.c +2 -1
@@ -651,7 +651,8 @@if (vginfo->creation_host)dm_free (vginfo->creation_host); -if (*vginfo->vgid && _vgid_hash) +if (*vginfo->vgid && _vgid_hash && +vginfo_from_vgid (vginfo->vgid) == vginfo)dm_hash_remove (_vgid_hash, vginfo->vgid);list_del (&vginfo->list);