diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-03-10 09:45:28 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-03-10 09:45:28 +0100 |
commit | 8ce84eeb5b40da21f20174dd25891a8409534237 (patch) | |
tree | a375dc92bc563655976d90ccfa6d794ab551f47a /fs/jfs/namei.c | |
parent | ocfs2: fix d_revalidate oopsen on NFS exports (diff) | |
download | linux-8ce84eeb5b40da21f20174dd25891a8409534237.tar.xz linux-8ce84eeb5b40da21f20174dd25891a8409534237.zip |
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 '')
-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. |