diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2023-11-11 01:14:38 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2023-12-21 12:49:16 -0500 |
commit | 32328a73e0ad4a1babebf798c309c64ee3b97400 (patch) | |
tree | 56fc2cc9f48e329576260b378031ad2779acfa23 /fs/udf | |
parent | 28403c09e36c84233db46ee29fdfc7124a8f576d (diff) |
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>
Diffstat (limited to 'fs/udf')
-rw-r--r-- | fs/udf/namei.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/udf/namei.c b/fs/udf/namei.c index 3508ac484da3..92f25e540430 100644 --- a/fs/udf/namei.c +++ b/fs/udf/namei.c @@ -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); |