smb3: do not attempt multichannel to server which does not support it
authorSteve French <stfrench@microsoft.com>
Sat, 8 May 2021 01:00:41 +0000 (20:00 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 May 2021 12:47:37 +0000 (14:47 +0200)
commitd35c4c959eb48c0f14179dbeb28672bdd400b1c9
tree399593f78afae73dde7c22c942def2bf54ddc85f
parent796b8263752890976b8df9692852ec8fcb36549a
smb3: do not attempt multichannel to server which does not support it

commit 9c2dc11df50d1c8537075ff6b98472198e24438e upstream.

We were ignoring CAP_MULTI_CHANNEL in the server response - if the
server doesn't support multichannel we should not be attempting it.

See MS-SMB2 section 3.2.5.2

Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-By: Tom Talpey <tom@talpey.com>
Cc: <stable@vger.kernel.org> # v5.8+
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/sess.c