LVM2/daemons/lvmetad lvmetad-core.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mornfall at sourceware.org 2011-07-20 21:27:29
Modified files:
daemons/lvmetad: lvmetad-core.c
Log message:
lvmetad: Fix a possible infinite loop in vg_status.
daemons/lvmetad/lvmetad-core.c +1 -4
@@ -166,11 +166,8 @@while (pv) {const char *uuid =find_config_str (pv->child,"id" ,NULL ); -if (!uuid) -continue ;// FIXME? -lock_pvs (s); -int found =dm_hash_lookup (s->pvs, uuid) ?1 :0 ; +int found = uuid ? (dm_hash_lookup (s->pvs, uuid) ?1 :0 ) :0 ;unlock_pvs (s);if (!found) {unlock_vg (s, vgid);