aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/connect.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r--fs/cifs/connect.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 2e7a4ea26ab9..6926023af878 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -2522,6 +2522,7 @@ remote_path_check:
2522 2522
2523 /* get referral if needed */ 2523 /* get referral if needed */
2524 if (rc == -EREMOTE) { 2524 if (rc == -EREMOTE) {
2525#ifdef CONFIG_CIFS_DFS_UPCALL
2525 /* convert forward to back slashes in prepath here if needed */ 2526 /* convert forward to back slashes in prepath here if needed */
2526 if ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_POSIX_PATHS) == 0) 2527 if ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_POSIX_PATHS) == 0)
2527 convert_delimiter(cifs_sb->prepath, 2528 convert_delimiter(cifs_sb->prepath,
@@ -2557,6 +2558,9 @@ remote_path_check:
2557 kfree(full_path); 2558 kfree(full_path);
2558 goto try_mount_again; 2559 goto try_mount_again;
2559 } 2560 }
2561#else /* No DFS support, return error on mount */
2562 rc = -EOPNOTSUPP;
2563#endif
2560 } 2564 }
2561 2565
2562mount_fail_check: 2566mount_fail_check: