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>
This commit is contained in:
@@ -913,7 +913,7 @@ struct dentry *exofs_get_parent(struct dentry *child)
|
|||||||
unsigned long ino = exofs_parent_ino(child);
|
unsigned long ino = exofs_parent_ino(child);
|
||||||
|
|
||||||
if (!ino)
|
if (!ino)
|
||||||
return NULL;
|
return ERR_PTR(-ESTALE);
|
||||||
|
|
||||||
return d_obtain_alias(exofs_iget(child->d_inode->i_sb, ino));
|
return d_obtain_alias(exofs_iget(child->d_inode->i_sb, ino));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user