diff options
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 (patch) | |
tree | 57d2cf2250889401bdd946a392b361fdb9290aba /include/linux/fs.h | |
parent | 1a97d899ecbc4b60c8e8f9b41cde443510b5b1bf (diff) | |
download | lwn-2e2cbaf920d14de9a96180ddefd6861bcc46f07d.tar.gz lwn-2e2cbaf920d14de9a96180ddefd6861bcc46f07d.zip |
fix hostfs_open() use of ->f_path.dentry
this is one of the cases where we need to use d_real() - we are
using more than the name of dentry here. ->d_sb is used as well,
so in case of hostfs being used as a layer we get the wrong
superblock.
Reported-by: Johannes Berg <johannes@sipsolutions.net>
Tested-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/fs.h')
0 files changed, 0 insertions, 0 deletions