Skip to content

Commit

Permalink
fix exofs ->get_parent()
Browse files Browse the repository at this point in the history
NULL is not a possible return value for that method, TYVM...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Jul 18, 2011
1 parent 1b71fe2 commit a803b80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/exofs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit a803b80

Please sign in to comment.