author: Al Viro <viro@zeniv.linux.org.uk> 2020-12-09 18:38:24 -0500
committer: Al Viro <viro@zeniv.linux.org.uk> 2020-12-21 21:42:29 -0500
commit: 2e2cbaf920d14de9a96180ddefd6861bcc46f07d
parent: 1a97d899ecbc4b60c8e8f9b41cde443510b5b1bf
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c
index c070c0d8e3e9..aea35459d390 100644
--- a/fs/hostfs/hostfs_kern.c
+++ b/fs/hostfs/hostfs_kern.c
@@ -315,7 +315,7 @@ retry:
if (mode & FMODE_WRITE)
r = w = 1;
- name = dentry_name(file->f_path.dentry);
+ name = dentry_name(d_real(file->f_path.dentry, file->f_inode));
if (name == NULL)
return -ENOMEM;