Skip to content

Commit

Permalink
kernfs: d_obtain_alias(NULL) will do the right thing...
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Al Viro authored and Greg Kroah-Hartman committed Dec 20, 2023
1 parent 532888a commit 64c1668
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/kernfs/mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 64c1668

Please sign in to comment.