summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-07-09 02:56:55 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2011-07-18 05:20:29 +0200
commita803b8067e317832d6a251c5b0486e36a4f81922 (patch)
treedb7a40edece0e43f870bc33776bb1a7e4fb13006 /fs
parentceph analog of cifs build_path_from_dentry() race fix (diff)
downloadlinux-a803b8067e317832d6a251c5b0486e36a4f81922.tar.xz
linux-a803b8067e317832d6a251c5b0486e36a4f81922.zip
fix exofs ->get_parent()
NULL is not a possible return value for that method, TYVM... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/exofs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/exofs/super.c b/fs/exofs/super.c
index 06065bd37fc3..c57beddcc217 100644
--- a/fs/exofs/super.c
+++ b/fs/exofs/super.c
@@ -913,7 +913,7 @@ struct dentry *exofs_get_parent(struct dentry *child)
unsigned long ino = exofs_parent_ino(child);
if (!ino)
- return NULL;
+ return ERR_PTR(-ESTALE);
return d_obtain_alias(exofs_iget(child->d_inode->i_sb, ino));
}