Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0eb980e3 authored by Al Viro's avatar Al Viro
Browse files

ceph: fix d_revalidate oopsen on NFS exports



can't blindly check nd->flags in ->d_revalidate()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent c78f4cc5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;