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>

authored by Ronnie Sahlberg and committed by Steve French 9fdd2e00 2e96467d

+1 -1
+1 -1
fs/cifs/smb2pdu.c
··· 1131 1131 if (rc) 1132 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 1135 le16_to_cpu(rsp->SecurityBufferOffset)) { 1136 1136 cifs_dbg(VFS, "Invalid security buffer offset %d\n", 1137 1137 le16_to_cpu(rsp->SecurityBufferOffset));