Commit 64c16682 authored by Al Viro's avatar Al Viro Committed by Greg Kroah-Hartman

kernfs: d_obtain_alias(NULL) will do the right thing...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Link: https://lore.kernel.org/r/20231220052229.GH1674809@ZenIVSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 532888a5
......@@ -125,9 +125,6 @@ static struct dentry *__kernfs_fh_to_dentry(struct super_block *sb,
inode = kernfs_get_inode(sb, kn);
kernfs_put(kn);
if (!inode)
return ERR_PTR(-ESTALE);
return d_obtain_alias(inode);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment