Skip to content

Commit 72a7804

Browse files
Paulo Alcantarasmfrench
authored andcommitted
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: Kris Karas (Bug Reporting) <bugs-a21@moonlit-rail.com> Tested-by: Woody Suwalski <terraluna977@gmail.com> Fixes: 8e35541 ("cifs: fix sharing of DFS connections") Cc: stable@vger.kernel.org # v6.2+ Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 4ef4aee commit 72a7804

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/cifs/dfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ int dfs_mount_share(struct cifs_mount_ctx *mnt_ctx, bool *isdfs)
303303
if (!nodfs) {
304304
rc = dfs_get_referral(mnt_ctx, ctx->UNC + 1, NULL, NULL);
305305
if (rc) {
306-
if (rc != -ENOENT && rc != -EOPNOTSUPP)
306+
if (rc != -ENOENT && rc != -EOPNOTSUPP && rc != -EIO)
307307
goto out;
308308
nodfs = true;
309309
}

0 commit comments

Comments
 (0)