[Ocfs2-commits] mfasheh commits r860 - trunk/src

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Tue Apr 20 15:35:11 CDT 2004


Author: mfasheh
Date: 2004-04-20 14:35:10 -0500 (Tue, 20 Apr 2004)
New Revision: 860

Modified:
   trunk/src/nm.c
Log:
* fix a little NULL pointer deref. which slipped into process_vote.


Modified: trunk/src/nm.c
===================================================================
--- trunk/src/nm.c	2004-04-20 17:54:47 UTC (rev 859)
+++ trunk/src/nm.c	2004-04-20 19:35:10 UTC (rev 860)
@@ -1164,7 +1164,7 @@
 			if (vote_type == CHANGE_MASTER) {
 				OCFS_BH_PUT_DATA(fe_bh);
 				fe = (ocfs_file_entry *) OCFS_BH_GET_DATA_WRITE(fe_bh); /* write */
-				if (OCFS_I(inode)->open_hndl_cnt)
+				if (inode && OCFS_I(inode)->open_hndl_cnt)
 					DISK_LOCK_OIN_MAP (fe) |= (1 << osb->node_num);
 				DISK_LOCK_CURRENT_MASTER (fe) = node_num;
 			}



More information about the Ocfs2-commits mailing list