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)
committerSteve French <stfrench@microsoft.com>
Sat, 8 May 2021 15:50:53 +0000 (10:50 -0500)
commit9c2dc11df50d1c8537075ff6b98472198e24438e
tree68ad663a5a4d6dc5963ff6e1c85dc09705105b3f
parent679971e7213174efb56abc8fab1299d0a88db0e8
smb3: do not attempt multichannel to server which does not support it

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>
fs/cifs/sess.c