diff options
author | Al Viro | 2011-03-10 03:45:28 -0500 |
---|---|---|
committer | Al Viro | 2011-03-10 03:45:28 -0500 |
commit | 8ce84eeb5b40da21f20174dd25891a8409534237 (patch) | |
tree | a375dc92bc563655976d90ccfa6d794ab551f47a /fs | |
parent | 4714e63731a8a641b5e0ed5e2e2191c13bf2d71a (diff) |
jfs: fix d_revalidate oopsen on NFS exports
can't blindly check nd->flags in ->d_revalidate()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/jfs/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jfs/namei.c b/fs/jfs/namei.c index 81ead850ddb6..5a2b269428a6 100644 --- a/fs/jfs/namei.c +++ b/fs/jfs/namei.c @@ -1600,7 +1600,7 @@ out: static int jfs_ci_revalidate(struct dentry *dentry, struct nameidata *nd) { - if (nd->flags & LOOKUP_RCU) + if (nd && nd->flags & LOOKUP_RCU) return -ECHILD; /* * This is not negative dentry. Always valid. |