mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 13:22:57 +00:00
zonefs: d_splice_alias() will do the right thing on ERR_PTR() inode
Acked-by: Damien Le Moal <dlemoal@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
b85ea95d08
commit
00488aa211
1 changed files with 0 additions and 2 deletions
|
@ -747,8 +747,6 @@ static struct dentry *zonefs_lookup(struct inode *dir, struct dentry *dentry,
|
|||
inode = zonefs_get_dir_inode(dir, dentry);
|
||||
else
|
||||
inode = zonefs_get_file_inode(dir, dentry);
|
||||
if (IS_ERR(inode))
|
||||
return ERR_CAST(inode);
|
||||
|
||||
return d_splice_alias(inode, dentry);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue