[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	agk sourceware org	2008-04-15 14:54:00

Modified files:
	lib/cache      : lvmcache.c 

Log message:
	missing stack

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

--- LVM2/lib/cache/lvmcache.c	2008/04/15 14:46:18	1.45
+++ LVM2/lib/cache/lvmcache.c	2008/04/15 14:54:00	1.46
@@ -420,10 +420,10 @@
 	    (!precommitted && vginfo->precommitted))
 		return NULL;
 
-	fid =  vginfo->fmt->ops->create_instance(vginfo->fmt, vginfo->vgname,
-						 vgid, NULL);
-	if (!fid)
-		return NULL;
+	if (!(fid =  vginfo->fmt->ops->create_instance(vginfo->fmt,
+						       vginfo->vgname,
+						       vgid, NULL)))
+		return_NULL;
 
 	if (!(vg = import_vg_from_buffer(vginfo->vgmetadata, fid)) ||
 	    !vg_validate(vg)) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]