fix exofs ->get_parent()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 9 Jul 2011 00:56:55 +0000 (20:56 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 18 Jul 2011 03:20:29 +0000 (23:20 -0400)
NULL is not a possible return value for that method, TYVM...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/exofs/super.c

index 06065bd37fc339070948a141cd8063c9d39af8ad..c57beddcc217e3e3592fe977f8237f7f46ddf16f 100644 (file)
@@ -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));
 }