Whamcloud - gitweb
LU-3483 llite: Null deref in ll_revalidate_nd on NFSmount
[fs/lustre-release.git] / lustre / llite / dcache.c
index 0152192..9f57ed8 100644 (file)
@@ -693,7 +693,7 @@ int ll_revalidate_nd(struct dentry *dentry, struct nameidata *nd)
 
 #ifndef HAVE_DCACHE_LOCK
        /* kernel >= 2.6.38 supports rcu-walk, but lustre doesn't. */
-       if (nd->flags & LOOKUP_RCU)
+       if (nd && (nd->flags & LOOKUP_RCU))
                return -ECHILD;
 #endif