From: Al Viro Date: Thu, 10 Mar 2011 08:44:48 +0000 (-0500) Subject: gfs2: fix d_revalidate oopsen on NFS exports X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=53fe924161ff18d24c5c1c256549e9c1b9874827;p=linux-beck.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 4a456338b873..0da8da2c991d 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);