diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2020-08-30 11:38:21 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-08-30 11:38:21 -0700 |
commit | 3edd8db2d53fe6c96ad66248bb1479ae62807268 (patch) | |
tree | fe4a6cc07e64bddb5af2d0d63ae19bc303828356 /fs/cifs/connect.c | |
parent | 8bb5021cc2ee5d5dd129a9f2f5ad2bb76eea297d (diff) | |
parent | e183785f2529b4135f00a0330a3b08e7c86530c8 (diff) | |
download | linux-3edd8db2d53fe6c96ad66248bb1479ae62807268.tar.bz2 |
Merge tag '5.9-rc2-smb-fix' of git://git.samba.org/sfrench/cifs-2.6
Pull cfis fix from Steve French:
"DFS fix for referral problem when using SMB1"
* tag '5.9-rc2-smb-fix' of git://git.samba.org/sfrench/cifs-2.6:
cifs: fix check of tcon dfs in smb1
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r-- | fs/cifs/connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 51c6b7880a70..a5731dd6e656 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -4909,7 +4909,7 @@ int cifs_mount(struct cifs_sb_info *cifs_sb, struct smb_vol *vol) if (!tcon) continue; /* Make sure that requests go through new root servers */ - if (tcon->share_flags & (SHI1005_FLAGS_DFS | SHI1005_FLAGS_DFS_ROOT)) { + if (is_tcon_dfs(tcon)) { put_root_ses(root_ses); set_root_ses(cifs_sb, ses, &root_ses); } |