]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cifs: version operations for smb20 unneeded when legacy support disabled
authorSteve French <stfrench@microsoft.com>
Thu, 2 Jun 2022 03:08:46 +0000 (22:08 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 16:41:41 +0000 (18:41 +0200)
commit278cd0d714d5fdbfc69364b3ec1c27d2d5e2d13f
tree5b99bb4d135840359867495cb395fe0b62f777a6
parenteeb86807d19e75043dc069c7256499dc9fa57495
cifs: version operations for smb20 unneeded when legacy support disabled

[ Upstream commit 7ef93ffccd55fb0ba000ed16ef6a81cd7dee07b5 ]

We should not be including unused smb20 specific code when legacy
support is disabled (CONFIG_CIFS_ALLOW_INSECURE_LEGACY turned
off).  For example smb2_operations and smb2_values aren't used
in that case.  Over time we can move more and more SMB1/CIFS and SMB2.0
code into the insecure legacy ifdefs

Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/cifsglob.h
fs/cifs/smb2ops.c