summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-03-10 09:44:31 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2011-03-10 09:44:31 +0100
commit529c5f958f9e60abaa7407986034b17d17536bf2 (patch)
tree3e946687f07c6738b9695224fd6492ceb8236e1e /fs
parentceph: fix d_revalidate oopsen on NFS exports (diff)
downloadlinux-529c5f958f9e60abaa7407986034b17d17536bf2.tar.xz
linux-529c5f958f9e60abaa7407986034b17d17536bf2.zip
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/fuse/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c
index 83543b5ff941..8bd0ef9286c3 100644
--- a/fs/fuse/dir.c
+++ b/fs/fuse/dir.c
@@ -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;