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

Commit e6222f00 authored by Sachin Prabhu's avatar Sachin Prabhu Committed by Greg Kroah-Hartman
Browse files

Fix regression which breaks DFS mounting



commit d171356ff11ab1825e456dfb979755e01b3c54a1 upstream.

Patch a6b5058 results in -EREMOTE returned by is_path_accessible() in
cifs_mount() to be ignored which breaks DFS mounting.

Signed-off-by: default avatarSachin Prabhu <sprabhu@redhat.com>
Reviewed-by: default avatarAurelien Aptel <aaptel@suse.com>
Signed-off-by: default avatarSteve French <smfrench@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d8f4633d
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -3693,6 +3693,7 @@ remote_path_check:
			goto mount_fail_check;
		}

		if (rc != -EREMOTE) {
			rc = cifs_are_all_path_components_accessible(server,
							     xid, tcon, cifs_sb,
							     full_path);
@@ -3702,6 +3703,7 @@ remote_path_check:
				cifs_sb->mnt_cifs_flags |= CIFS_MOUNT_USE_PREFIX_PATH;
				rc = 0;
			}
		}
		kfree(full_path);
	}