Skip to content

Commit

Permalink
Merge tag '6.5-rc4-smb3-client-fix' of git://git.samba.org/sfrench/ci…
Browse files Browse the repository at this point in the history
…fs-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
  • Loading branch information
torvalds committed Aug 5, 2023
2 parents 251a94f + 11260c3 commit f6a6916
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fs/smb/client/dfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f6a6916

Please sign in to comment.