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

Commit 4714e637 authored by Al Viro's avatar Al Viro
Browse files

ocfs2: 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 53fe9241
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ static int ocfs2_dentry_revalidate(struct dentry *dentry,
	int ret = 0;    /* if all else fails, just return false */
	struct ocfs2_super *osb;

	if (nd->flags & LOOKUP_RCU)
	if (nd && nd->flags & LOOKUP_RCU)
		return -ECHILD;

	inode = dentry->d_inode;