]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: fix workstation_name for multiuser mounts
authorRyan Bair <ryandbair@gmail.com>
Wed, 22 Dec 2021 16:04:05 +0000 (11:04 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 3 Feb 2022 06:16:37 +0000 (00:16 -0600)
commit4e114d71ec7a6ae80342ac7373b04cdeba5db60a
treebbbbfff67f0f4f0b29de3ca02cff16f72f34b722
parent500ca1985aac22a64f4b34ec2b1323a533b1633c
cifs: fix workstation_name for multiuser mounts

Set workstation_name from the master_tcon for multiuser mounts.

Just in case, protect size_of_ntlmssp_blob against a NULL workstation_name.

Fixes: 5b1b76846066 ("cifs: send workstation name during ntlmssp session setup")
Cc: stable@vger.kernel.org # 5.16
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Ryan Bair <ryandbair@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c
fs/cifs/sess.c