diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2023-12-20 05:22:29 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-12-20 07:24:35 +0100 |
commit | 64c166821e034dda14e7a1a2d648347662054e0e (patch) | |
tree | 565fc50ac1c25510b1c967085fa27b33286a0ad7 | |
parent | 532888a59505da2a3fbb4abac6adad381cedb374 (diff) |
kernfs: d_obtain_alias(NULL) will do the right thing...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Link: https://lore.kernel.org/r/20231220052229.GH1674809@ZenIV
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | fs/kernfs/mount.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/kernfs/mount.c b/fs/kernfs/mount.c index 4628edde2e7e..0c93cad0f0ac 100644 --- a/fs/kernfs/mount.c +++ b/fs/kernfs/mount.c @@ -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); } |