mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 21:21:41 +00:00
affs: d_obtain_alias(ERR_PTR(...)) will do the right thing
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
1eae9a4783
commit
155d46beea
@ -532,9 +532,6 @@ static struct dentry *affs_get_parent(struct dentry *child)
|
||||
parent = affs_iget(child->d_sb,
|
||||
be32_to_cpu(AFFS_TAIL(child->d_sb, bh)->parent));
|
||||
brelse(bh);
|
||||
if (IS_ERR(parent))
|
||||
return ERR_CAST(parent);
|
||||
|
||||
return d_obtain_alias(parent);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user