[Ocfs2-commits] zab commits r2606 - branches/locking-changes/fs/ocfs2

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Thu Sep 22 13:15:07 CDT 2005


Author: zab
Date: 2005-09-22 13:15:06 -0500 (Thu, 22 Sep 2005)
New Revision: 2606

Modified:
   branches/locking-changes/fs/ocfs2/aops.c
Log:
o don't accidentally trust an uninitialized di_bh pointer


Modified: branches/locking-changes/fs/ocfs2/aops.c
===================================================================
--- branches/locking-changes/fs/ocfs2/aops.c	2005-09-22 18:06:11 UTC (rev 2605)
+++ branches/locking-changes/fs/ocfs2/aops.c	2005-09-22 18:15:06 UTC (rev 2606)
@@ -370,7 +370,7 @@
 {
 	int ret, extending = 0, locklevel = 0;
 	loff_t new_i_size;
-	struct buffer_head *di_bh;
+	struct buffer_head *di_bh = NULL;
 	struct inode *inode = page->mapping->host;
 
 	mlog_entry("(0x%p, 0x%p, %u, %u)\n", file, page, from, to);



More information about the Ocfs2-commits mailing list