From: Al Viro Date: Thu, 10 Mar 2011 08:44:05 +0000 (-0500) Subject: ceph: fix d_revalidate oopsen on NFS exports X-Git-Tag: upstream/snapshot3+hdmi~11294^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0eb980e31770cfeff6e27760b4692d595b8dbf28;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.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 099a586..ebafa65 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;