[Ocfs2-commits] mfasheh commits r2181 - trunk/fs/ocfs2/cluster

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Tue Apr 26 17:33:16 CDT 2005


Author: mfasheh
Signed-off-by: manish
Signed-off-by: khackel
Date: 2005-04-26 17:33:14 -0500 (Tue, 26 Apr 2005)
New Revision: 2181

Modified:
   trunk/fs/ocfs2/cluster/masklog.c
Log:
* fix a null pointer error in the masklog interface

Signed-off-by: manish
Signed-off-by: khackel



Modified: trunk/fs/ocfs2/cluster/masklog.c
===================================================================
--- trunk/fs/ocfs2/cluster/masklog.c	2005-04-26 22:32:45 UTC (rev 2180)
+++ trunk/fs/ocfs2/cluster/masklog.c	2005-04-26 22:33:14 UTC (rev 2181)
@@ -127,10 +127,12 @@
 	for (i = 0; i < ARRAY_SIZE(mlog_bit_names); i++) {
 		name = mlog_bit_names[i];
 
+		if (name == NULL)
+			continue;
+
 		namelen = strlen(name);
 
-		if (name == NULL
-		    || namelen != masklen
+		if (namelen != masklen
 		    || strnicmp(mask, name, namelen))
 			continue;
 		break;



More information about the Ocfs2-commits mailing list