mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
gfs2: 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>
This commit is contained in:
parent
529c5f958f
commit
53fe924161
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user