diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-03-10 08:44:05 (GMT) |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-03-10 08:44:05 (GMT) |
commit | 0eb980e31770cfeff6e27760b4692d595b8dbf28 (patch) | |
tree | 62ce6d994beb41f1276169de643ebc9e343daeaa | |
parent | c78f4cc5e7d642c7009089817c12d8984e7ba872 (diff) | |
download | linux-0eb980e31770cfeff6e27760b4692d595b8dbf28.tar.xz |
ceph: 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>
-rw-r--r-- | fs/ceph/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c index 099a586..ebafa65 100644 --- a/fs/ceph/dir.c +++ b/fs/ceph/dir.c @@ -993,7 +993,7 @@ static int ceph_d_revalidate(struct dentry *dentry, struct nameidata *nd) { struct inode *dir; - if (nd->flags & LOOKUP_RCU) + if (nd && nd->flags & LOOKUP_RCU) return -ECHILD; dir = dentry->d_parent->d_inode; |