Skip to content

Commit 72a7804

Browse files
Paulo AlcantaraSteve French
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) <[email protected]> Tested-by: Woody Suwalski <[email protected]> Fixes: 8e35541 ("cifs: fix sharing of DFS connections") Cc: [email protected] # v6.2+ Signed-off-by: Paulo Alcantara (SUSE) <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 4ef4aee commit 72a7804

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)