Skip to content

Commit

Permalink
jfs: fix d_revalidate oopsen on NFS exports
Browse files Browse the repository at this point in the history
can't blindly check nd->flags in ->d_revalidate()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Mar 10, 2011
1 parent 4714e63 commit 8ce84ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/jfs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -1600,7 +1600,7 @@ static int jfs_ci_compare(const struct dentry *parent,

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.
Expand Down

0 comments on commit 8ce84ee

Please sign in to comment.