From: Al Viro Date: Thu, 10 Mar 2011 08:45:28 +0000 (-0500) Subject: jfs: fix d_revalidate oopsen on NFS exports X-Git-Tag: v2.6.38~25^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ce84eeb5b40da21f20174dd25891a8409534237;p=platform%2Fkernel%2Flinux-exynos.git jfs: 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/jfs/namei.c b/fs/jfs/namei.c index 81ead850ddb6..5a2b269428a6 100644 --- a/fs/jfs/namei.c +++ b/fs/jfs/namei.c @@ -1600,7 +1600,7 @@ out: 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.