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

Commit 8ce84eeb authored by Al Viro's avatar Al Viro
Browse files

jfs: 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 4714e637
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1600,7 +1600,7 @@ static int jfs_ci_compare(const struct dentry *parent,

static int jfs_ci_revalidate(struct dentry *dentry, struct nameidata *nd)
{
	if (nd->flags & LOOKUP_RCU)
	if (nd && nd->flags & LOOKUP_RCU)
		return -ECHILD;
	/*
	 * This is not negative dentry. Always valid.