Skip to content

Commit

Permalink
gfs2: 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 529c5f9 commit 53fe924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/gfs2/dentry.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static int gfs2_drevalidate(struct dentry *dentry, struct nameidata *nd)
int error;
int had_lock = 0;

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

parent = dget_parent(dentry);
Expand Down

0 comments on commit 53fe924

Please sign in to comment.