Skip to content

Commit 32328a7

Browse files
author
Al Viro
committed
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>
1 parent 28403c0 commit 32328a7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/udf/namei.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ static struct dentry *udf_lookup(struct inode *dir, struct dentry *dentry,
125125
udf_fiiter_release(&iter);
126126

127127
inode = udf_iget(dir->i_sb, &loc);
128-
if (IS_ERR(inode))
129-
return ERR_CAST(inode);
130128
}
131129

132130
return d_splice_alias(inode, dentry);

0 commit comments

Comments
 (0)