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.stricted.de/?a=commitdiff_plain;h=0eb980e31770cfeff6e27760b4692d595b8dbf28;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 099a58615b90..ebafa65a29b6 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;