Skip to content

Commit

Permalink
fuse: 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 0eb980e commit 529c5f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/fuse/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ static int fuse_dentry_revalidate(struct dentry *entry, struct nameidata *nd)
{
struct inode *inode;

if (nd->flags & LOOKUP_RCU)
if (nd && nd->flags & LOOKUP_RCU)
return -ECHILD;

inode = entry->d_inode;
Expand Down

0 comments on commit 529c5f9

Please sign in to comment.