aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonnie Sahlberg <lsahlber@redhat.com>2018-04-09 04:06:27 -0400
committerSteve French <smfrench@gmail.com>2018-04-12 18:12:22 -0400
commit9fdd2e0034393d6c63f830a60f6332c66927f2ff (patch)
treeb55bfa6c526c08d99aa699505f760784f6427487
parent2e96467d9eb189b38954bcbbf1ee16762914f4cb (diff)
cifs: replace a 4 with server->vals->header_preamble_size
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <smfrench@gmail.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
-rw-r--r--fs/cifs/smb2pdu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c
index e01be06d588e..5cbdddcafaec 100644
--- a/fs/cifs/smb2pdu.c
+++ b/fs/cifs/smb2pdu.c
@@ -1131,7 +1131,7 @@ SMB2_sess_auth_rawntlmssp_negotiate(struct SMB2_sess_data *sess_data)
1131 if (rc) 1131 if (rc)
1132 goto out; 1132 goto out;
1133 1133
1134 if (offsetof(struct smb2_sess_setup_rsp, Buffer) - 4 != 1134 if (offsetof(struct smb2_sess_setup_rsp, Buffer) - ses->server->vals->header_preamble_size !=
1135 le16_to_cpu(rsp->SecurityBufferOffset)) { 1135 le16_to_cpu(rsp->SecurityBufferOffset)) {
1136 cifs_dbg(VFS, "Invalid security buffer offset %d\n", 1136 cifs_dbg(VFS, "Invalid security buffer offset %d\n",
1137 le16_to_cpu(rsp->SecurityBufferOffset)); 1137 le16_to_cpu(rsp->SecurityBufferOffset));