From: Al Viro Date: Thu, 10 Mar 2011 08:44:48 +0000 (-0500) Subject: gfs2: fix d_revalidate oopsen on NFS exports X-Git-Tag: v2.6.38~25^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=53fe924161ff18d24c5c1c256549e9c1b9874827;p=profile%2Fcommon%2Fkernel-common.git gfs2: 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/gfs2/dentry.c b/fs/gfs2/dentry.c index 4a45633..0da8da2 100644 --- a/fs/gfs2/dentry.c +++ b/fs/gfs2/dentry.c @@ -44,7 +44,7 @@ static int gfs2_drevalidate(struct dentry *dentry, struct nameidata *nd) int error; int had_lock = 0; - if (nd->flags & LOOKUP_RCU) + if (nd && nd->flags & LOOKUP_RCU) return -ECHILD; parent = dget_parent(dentry);