Skip to content

Commit 64c1668

Browse files
Al Virogregkh
authored andcommitted
kernfs: d_obtain_alias(NULL) will do the right thing...
Signed-off-by: Al Viro <[email protected]> Link: https://lore.kernel.org/r/20231220052229.GH1674809@ZenIV Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 532888a commit 64c1668

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

fs/kernfs/mount.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,6 @@ static struct dentry *__kernfs_fh_to_dentry(struct super_block *sb,
125125

126126
inode = kernfs_get_inode(sb, kn);
127127
kernfs_put(kn);
128-
if (!inode)
129-
return ERR_PTR(-ESTALE);
130-
131128
return d_obtain_alias(inode);
132129
}
133130

0 commit comments

Comments
 (0)