Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d036f50f authored by Steve French's avatar Steve French
Browse files

[CIFS] Fix build break from recent DFS patch when DFS support not enabled



Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 1bfe73c2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2522,6 +2522,7 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb,

	/* get referral if needed */
	if (rc == -EREMOTE) {
#ifdef CONFIG_CIFS_DFS_UPCALL
		/* convert forward to back slashes in prepath here if needed */
		if ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_POSIX_PATHS) == 0)
			convert_delimiter(cifs_sb->prepath,
@@ -2557,6 +2558,9 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb,
			kfree(full_path);
			goto try_mount_again;
		}
#else /* No DFS support, return error on mount */
		rc = -EOPNOTSUPP;
#endif
	}

mount_fail_check: