summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2023-08-05 23:44:06 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2023-08-05 23:44:06 +0300
commitf6a691685962637e53371788fe2a72b171aedc68 (patch)
treec86ad1754066ce5ba41c051ee60aecf79f622e7b
parent251a94f1f66e909d75a774ac474a63bd9bc38382 (diff)
parent11260c3d608b59231f4c228147a795ab21a10b33 (diff)
downloadlinux-f6a691685962637e53371788fe2a72b171aedc68.tar.xz
Merge tag '6.5-rc4-smb3-client-fix' of git://git.samba.org/sfrench/cifs-2.6
Pull smb client fix from Steve French: - Fix DFS interlink problem (different namespace) * tag '6.5-rc4-smb3-client-fix' of git://git.samba.org/sfrench/cifs-2.6: smb: client: fix dfs link mount against w2k8
-rw-r--r--fs/smb/client/dfs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/smb/client/dfs.c b/fs/smb/client/dfs.c
index df3fd3b720da..ee772c3d9f00 100644
--- a/fs/smb/client/dfs.c
+++ b/fs/smb/client/dfs.c
@@ -177,8 +177,12 @@ static int __dfs_mount_share(struct cifs_mount_ctx *mnt_ctx)
struct dfs_cache_tgt_list tl = DFS_CACHE_TGT_LIST_INIT(tl);
rc = dfs_get_referral(mnt_ctx, ref_path + 1, NULL, &tl);
- if (rc)
+ if (rc) {
+ rc = cifs_mount_get_tcon(mnt_ctx);
+ if (!rc)
+ rc = cifs_is_path_remote(mnt_ctx);
break;
+ }
tit = dfs_cache_get_tgt_iterator(&tl);
if (!tit) {