commit | 8ce84eeb5b40da21f20174dd25891a8409534237 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Thu Mar 10 03:45:28 2011 -0500 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Thu Mar 10 03:45:28 2011 -0500 |
tree | a375dc92bc563655976d90ccfa6d794ab551f47a | |
parent | 4714e63731a8a641b5e0ed5e2e2191c13bf2d71a [diff] [blame] |
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>
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 @@ 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.