aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-03-10 03:45:28 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2011-03-10 03:45:28 -0500
commit8ce84eeb5b40da21f20174dd25891a8409534237 (patch)
treea375dc92bc563655976d90ccfa6d794ab551f47a /fs
parent4714e63731a8a641b5e0ed5e2e2191c13bf2d71a (diff)
downloadkernel_goldelico_gta04-8ce84eeb5b40da21f20174dd25891a8409534237.zip
kernel_goldelico_gta04-8ce84eeb5b40da21f20174dd25891a8409534237.tar.gz
kernel_goldelico_gta04-8ce84eeb5b40da21f20174dd25891a8409534237.tar.bz2
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jfs/namei.c b/fs/jfs/namei.c
index 81ead85..5a2b269 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.