[lvm-devel] LVM2/lib/cache lvmcache.c

zkabelac at sourceware.org zkabelac at sourceware.org
Thu Mar 1 21:58:55 UTC 2012


CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac at sourceware.org	2012-03-01 21:58:55

Modified files:
	lib/cache      : lvmcache.c 

Log message:
	Check pointer before deref in debug message

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/cache/lvmcache.c.diff?cvsroot=lvm2&r1=1.132&r2=1.133

--- LVM2/lib/cache/lvmcache.c	2012/03/01 21:57:43	1.132
+++ LVM2/lib/cache/lvmcache.c	2012/03/01 21:58:55	1.133
@@ -1110,8 +1110,8 @@
 
 	if (!is_orphan_vg(vginfo->vgname))
 		log_debug("lvmcache: %s: setting %s VGID to %s",
-			  dev_name(info->dev), vginfo->vgname,
-			  vginfo->vgid);
+			  (info) ? dev_name(info->dev) : "",
+			  vginfo->vgname, vginfo->vgid);
 
 	return 1;
 }




More information about the lvm-devel mailing list