diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2023-11-11 07:55:30 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2023-12-21 18:49:36 +0100 |
commit | f58b8c3ef7b25582448c262e56f0414c48424952 (patch) | |
tree | 8db4b40380099ddb0907a3e5f9938725d81cb061 /fs/udf | |
parent | udf: d_splice_alias() will do the right thing on ERR_PTR() inode (diff) | |
download | linux-f58b8c3ef7b25582448c262e56f0414c48424952.tar.xz linux-f58b8c3ef7b25582448c262e56f0414c48424952.zip |
udf: d_obtain_alias(ERR_PTR(...)) will do the right thing...
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 | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/udf/namei.c b/fs/udf/namei.c index 92f25e540430..a64102d63781 100644 --- a/fs/udf/namei.c +++ b/fs/udf/namei.c @@ -897,7 +897,6 @@ out_oiter: static struct dentry *udf_get_parent(struct dentry *child) { struct kernel_lb_addr tloc; - struct inode *inode = NULL; struct udf_fileident_iter iter; int err; @@ -907,11 +906,7 @@ static struct dentry *udf_get_parent(struct dentry *child) tloc = lelb_to_cpu(iter.fi.icb.extLocation); udf_fiiter_release(&iter); - inode = udf_iget(child->d_sb, &tloc); - if (IS_ERR(inode)) - return ERR_CAST(inode); - - return d_obtain_alias(inode); + return d_obtain_alias(udf_iget(child->d_sb, &tloc)); } |