mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
fuse: 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
0eb980e317
commit
529c5f958f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user