Skip to content
Snippets Groups Projects
Commit 36bb22a0 authored by Gleb Korobeynikov's avatar Gleb Korobeynikov Committed by Steve French
Browse files

cifs: cifs_inval_name_dfs_link_error: correct the check for fullpath

Replace the always-true check tcon->origin_fullpath with
check of server->leaf_fullpath

See https://bugzilla.kernel.org/show_bug.cgi?id=219083



The check of the new @tcon will always be true during mounting,
since @tcon->origin_fullpath will only be set after the tree is
connected to the latest common resource, as well as checking if
the prefix paths from it are fully accessible.

Fixes: 3ae872de ("smb: client: fix shared DFS root mounts with different prefixes")
Reviewed-by: default avatarPaulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: default avatarGleb Korobeynikov <gkorobeynikov@astralinux.ru>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent bdcffe4b
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment