[Ocfs2-commits] khackel commits r1120 - branches/format-changes/src
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Wed Jun 16 20:46:56 CDT 2004
Author: khackel
Date: 2004-06-16 19:46:54 -0500 (Wed, 16 Jun 2004)
New Revision: 1120
Modified:
branches/format-changes/src/sysfile.c
Log:
system file inode array pointer could be null so check it !
Modified: branches/format-changes/src/sysfile.c
===================================================================
--- branches/format-changes/src/sysfile.c 2004-06-17 00:45:02 UTC (rev 1119)
+++ branches/format-changes/src/sysfile.c 2004-06-17 00:46:54 UTC (rev 1120)
@@ -75,7 +75,7 @@
if (is_in_system_inode_array(osb, type, node))
arr = &(osb->system_inodes[type]);
- if ((inode = *arr) != NULL) {
+ if (arr && (inode = *arr) != NULL) {
/* get a ref in addition to the array ref */
igrab(inode);
return inode;
More information about the Ocfs2-commits
mailing list