]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: fix potential mismatch of UNC paths
authorPaulo Alcantara (SUSE) <pc@cjr.nz>
Thu, 20 Feb 2020 22:49:35 +0000 (19:49 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Mar 2020 07:25:43 +0000 (08:25 +0100)
commita7748616225e4d3089cf39428849f87cd581ffb5
tree8f78e619f56e7d9e2774315d403411df757e7b30
parentb0714653b535d4e0d40fae5a22ae7cf70115e3af
cifs: fix potential mismatch of UNC paths

[ Upstream commit a391fee8c4c33005f57f7623625e12c92dae0983 ]

Ensure that full_path is an UNC path that contains '\\' as delimiter,
which is required by cifs_build_devname().

The build_path_from_dentry_optional_prefix() function may return a
path with '/' as delimiter when using SMB1 UNIX extensions, for
example.

Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
Acked-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/cifs_dfs_ref.c