From: Al Viro Date: Sat, 9 Jul 2011 00:56:55 +0000 (-0400) Subject: fix exofs ->get_parent() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a803b8067e317832d6a251c5b0486e36a4f81922;p=linux-beck.git fix exofs ->get_parent() NULL is not a possible return value for that method, TYVM... Signed-off-by: Al Viro --- 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)); }