diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-03-10 03:45:07 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-03-10 03:45:07 -0500 |
commit | 4714e63731a8a641b5e0ed5e2e2191c13bf2d71a (patch) | |
tree | b857a67b96e602835db64abd1e883c16691e5921 /fs/ocfs2 | |
parent | 53fe924161ff18d24c5c1c256549e9c1b9874827 (diff) | |
download | linux-3.10-4714e63731a8a641b5e0ed5e2e2191c13bf2d71a.tar.gz linux-3.10-4714e63731a8a641b5e0ed5e2e2191c13bf2d71a.tar.bz2 linux-3.10-4714e63731a8a641b5e0ed5e2e2191c13bf2d71a.zip |
ocfs2: fix d_revalidate oopsen on NFS exports
can't blindly check nd->flags in ->d_revalidate()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ocfs2')
-rw-r--r-- | fs/ocfs2/dcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/dcache.c b/fs/ocfs2/dcache.c index 6d80ecc7834..7eb90403fc8 100644 --- a/fs/ocfs2/dcache.c +++ b/fs/ocfs2/dcache.c @@ -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; |