diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-03-10 03:45:28 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-03-10 03:45:28 -0500 |
commit | 8ce84eeb5b40da21f20174dd25891a8409534237 (patch) | |
tree | a375dc92bc563655976d90ccfa6d794ab551f47a /fs/jfs | |
parent | 4714e63731a8a641b5e0ed5e2e2191c13bf2d71a (diff) | |
download | op-kernel-dev-8ce84eeb5b40da21f20174dd25891a8409534237.zip op-kernel-dev-8ce84eeb5b40da21f20174dd25891a8409534237.tar.gz |
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/jfs')
-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 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. |