Commit 72a7804a authored by Paulo Alcantara's avatar Paulo Alcantara Committed by Steve French

cifs: fix smb1 mount regression

cifs.ko maps NT_STATUS_NOT_FOUND to -EIO when SMB1 servers couldn't
resolve referral paths.  Proceed to tree connect when we get -EIO from
dfs_get_referral() as well.
Reported-by: default avatarKris Karas (Bug Reporting) <bugs-a21@moonlit-rail.com>
Tested-by: default avatarWoody Suwalski <terraluna977@gmail.com>
Fixes: 8e355415 ("cifs: fix sharing of DFS connections")
Cc: stable@vger.kernel.org # v6.2+
Signed-off-by: default avatarPaulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 4ef4aee6
...@@ -303,7 +303,7 @@ int dfs_mount_share(struct cifs_mount_ctx *mnt_ctx, bool *isdfs) ...@@ -303,7 +303,7 @@ int dfs_mount_share(struct cifs_mount_ctx *mnt_ctx, bool *isdfs)
if (!nodfs) { if (!nodfs) {
rc = dfs_get_referral(mnt_ctx, ctx->UNC + 1, NULL, NULL); rc = dfs_get_referral(mnt_ctx, ctx->UNC + 1, NULL, NULL);
if (rc) { if (rc) {
if (rc != -ENOENT && rc != -EOPNOTSUPP) if (rc != -ENOENT && rc != -EOPNOTSUPP && rc != -EIO)
goto out; goto out;
nodfs = true; nodfs = true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment