Skip to contentSkip to conversation

LVM2 ./WHATS_NEW lib/cache/lvmcache.c

PATCH [email protected] 1 participant 1 message Mar 10, 2011

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2011-03-10 03:03:04

Modified files:
. : WHATS_NEW
lib/cache : lvmcache.c

Log message:
Avoid possible endless loop in _free_vginfo when 4 or more VGs have same name.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1939&r2=1.1940
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/cache/lvmcache.c.diff?cvsroot=lvm2&r1=1.104&r2=1.105

WHATS_NEW +1 -0
@@ -1,5 +1,6 @@
 Version 2.02.85 - 
 ===================================
+  Avoid possible endless loop in _free_vginfo when 4 or more VGs have same name.
   Use empty string instead of /dev// for LV path when there's no VG.
   Don't allocate unused VG mempool in _pvsegs_sub_single.
   Remove uninitialised byte from end of local clvmd messages.
lib/cache/lvmcache.c +1 -1
@@ -845,7 +845,7 @@
 			vginfo2->next = vginfo->next;
 			break;
 		}
- 	while ((vginfo2 = primary_vginfo->next));
+ 	while ((vginfo2 = vginfo2->next));
 
 	if (vginfo->vgname)
 		dm_free(vginfo->vgname);