udf: d_splice_alias() will do the right thing on ERR_PTR() inode
Acked-by: Jan Kara <jack@suse.cz> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
28403c09e3
commit
32328a73e0
@ -125,8 +125,6 @@ static struct dentry *udf_lookup(struct inode *dir, struct dentry *dentry,
|
||||
udf_fiiter_release(&iter);
|
||||
|
||||
inode = udf_iget(dir->i_sb, &loc);
|
||||
if (IS_ERR(inode))
|
||||
return ERR_CAST(inode);
|
||||
}
|
||||
|
||||
return d_splice_alias(inode, dentry);
|
||||
|
Loading…
Reference in New Issue
Block a user