From: Al Viro Date: Thu, 10 Mar 2011 08:44:31 +0000 (-0500) Subject: fuse: fix d_revalidate oopsen on NFS exports X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=529c5f958f9e60abaa7407986034b17d17536bf2;p=linux-beck.git fuse: fix d_revalidate oopsen on NFS exports can't blindly check nd->flags in ->d_revalidate() Signed-off-by: Al Viro --- 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;