diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 0c7596cef4b88639c50b3efdb86a511f349ac451..d82467cfb0e2df5ef7e655bc601f4f17f3b890b1 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -3753,6 +3753,9 @@ cifs_mount(struct cifs_sb_info *cifs_sb, struct smb_vol *volume_info) if (IS_ERR(tcon)) { rc = PTR_ERR(tcon); tcon = NULL; + if (rc == -EACCES) + goto mount_fail_check; + goto remote_path_check; }