From: Al Viro Date: Thu, 10 Mar 2011 08:44:05 +0000 (-0500) Subject: ceph: fix d_revalidate oopsen on NFS exports X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;ds=sidebyside;h=0eb980e31770cfeff6e27760b4692d595b8dbf28;p=mv-sheeva.git ceph: 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/ceph/dir.c b/fs/ceph/dir.c index 099a58615b9..ebafa65a29b 100644 --- a/fs/ceph/dir.c +++ b/fs/ceph/dir.c @@ -993,7 +993,7 @@ static int ceph_d_revalidate(struct dentry *dentry, struct nameidata *nd) { struct inode *dir; - if (nd->flags & LOOKUP_RCU) + if (nd && nd->flags & LOOKUP_RCU) return -ECHILD; dir = dentry->d_parent->d_inode;