diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2023-12-20 06:22:29 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-12-20 07:24:35 +0100 |
commit | 64c166821e034dda14e7a1a2d648347662054e0e (patch) | |
tree | 565fc50ac1c25510b1c967085fa27b33286a0ad7 /fs/kernfs | |
parent | driver core: Better advertise dev_err_probe() (diff) | |
download | linux-64c166821e034dda14e7a1a2d648347662054e0e.tar.xz linux-64c166821e034dda14e7a1a2d648347662054e0e.zip |
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>
Diffstat (limited to 'fs/kernfs')
-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); } |