[Ocfs2-commits] mfasheh commits r772 - trunk/src
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Thu Mar 11 18:51:22 CST 2004
Author: mfasheh
Date: 2004-03-11 18:51:20 -0600 (Thu, 11 Mar 2004)
New Revision: 772
Modified:
trunk/src/dcache.c
Log:
* include a patch from Rusty Lynch:
The following minimal patch catches the case on a 2.6 system where
the passed in nameidata is null (which is a valid scenario.)
This is what is causing file deletion to crash.
Modified: trunk/src/dcache.c
===================================================================
--- trunk/src/dcache.c 2004-03-12 00:11:14 UTC (rev 771)
+++ trunk/src/dcache.c 2004-03-12 00:51:20 UTC (rev 772)
@@ -52,7 +52,7 @@
int needs_trunc;
ocfs_find_inode_args args;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
- int flags = nd->flags;
+ int flags = nd ? nd->flags : 0;
#endif
LOG_ENTRY_ARGS ("(0x%08x, %d, '%*s')\n", dentry, flags,
More information about the Ocfs2-commits
mailing list