SMB3.1.1: remove confusing mount warning when no SPNEGO info on negprot rsp
authorSteve French <stfrench@microsoft.com>
Wed, 9 Dec 2020 07:12:35 +0000 (01:12 -0600)
committerSteve French <stfrench@microsoft.com>
Mon, 14 Dec 2020 01:12:07 +0000 (19:12 -0600)
commitbc7c4129d4cdc56d1b5477c1714246f27df914dd
treeb90cca49c3d723dc928ff5fccb6faff9071bac7f
parentebcd6de98754d9b6a5f89d7835864b1c365d432f
SMB3.1.1: remove confusing mount warning when no SPNEGO info on negprot rsp

Azure does not send an SPNEGO blob in the negotiate protocol response,
so we shouldn't assume that it is there when validating the location
of the first negotiate context.  This avoids the potential confusing
mount warning:

   CIFS: Invalid negotiate context offset

CC: Stable <stable@vger.kernel.org>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2misc.c