diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2022-08-12 03:51:18 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2022-08-13 01:40:15 +0300 |
commit | 7eb59a98701d3113671b513593bb489cc76f58d2 (patch) | |
tree | 307b4338c95b6a53760256c015d3ecdf4b898075 /fs/cifs/smb2inode.c | |
parent | a63ec83c462b5b1439f71ace751e8985dfb3fcab (diff) | |
download | linux-7eb59a98701d3113671b513593bb489cc76f58d2.tar.xz |
cifs: Do not access tcon->cfids->cfid directly from is_path_accessible
cfids will soon keep a list of cached fids so we should not access this
directly from outside of cached_dir.c
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/smb2inode.c')
-rw-r--r-- | fs/cifs/smb2inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/smb2inode.c b/fs/cifs/smb2inode.c index 9696184a09e3..b83f59051b26 100644 --- a/fs/cifs/smb2inode.c +++ b/fs/cifs/smb2inode.c @@ -516,7 +516,7 @@ smb2_query_path_info(const unsigned int xid, struct cifs_tcon *tcon, if (strcmp(full_path, "")) rc = -ENOENT; else - rc = open_cached_dir(xid, tcon, full_path, cifs_sb, &cfid); + rc = open_cached_dir(xid, tcon, full_path, cifs_sb, false, &cfid); /* If it is a root and its handle is cached then use it */ if (!rc) { if (cfid->file_all_info_is_valid) { |