CIFS: Respect SMB2 hdr preamble size in read responses
authorPavel Shilovsky <pshilov@microsoft.com>
Fri, 18 Jan 2019 00:18:38 +0000 (16:18 -0800)
committerSteve French <stfrench@microsoft.com>
Tue, 5 Mar 2019 02:06:39 +0000 (20:06 -0600)
commitbb1bccb60c2ebd9a6f895507d1d48d5ed773814e
treec12fe68438b442121504bb6de9f869de9a36364f
parent66265f134acfb202465fecfbeb61fefb66595c40
CIFS: Respect SMB2 hdr preamble size in read responses

There are a couple places where we still account for 4 bytes
in the beginning of SMB2 packet which is not true in the current
code. Fix this to use a header preamble size where possible.

Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifssmb.c
fs/cifs/smb2ops.c