summaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2transport.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <lsahlber@redhat.com>2018-04-09 10:06:28 +0200
committerSteve French <smfrench@gmail.com>2018-04-13 03:32:48 +0200
commite19b2bc0790a1c25b226815ce132c06274b1ba87 (patch)
tree671e8abfb8ad3a01bb92b6250e06093e6335e8b5 /fs/cifs/smb2transport.c
parentsmb3.11: replace a 4 with server->vals->header_preamble_size (diff)
downloadlinux-e19b2bc0790a1c25b226815ce132c06274b1ba87.tar.xz
linux-e19b2bc0790a1c25b226815ce132c06274b1ba87.zip
cifs: add resp_buf_size to the mid_q_entry structure
and get rid of some more calls to get_rfc1002_length() Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <smfrench@gmail.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Diffstat (limited to 'fs/cifs/smb2transport.c')
-rw-r--r--fs/cifs/smb2transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/smb2transport.c b/fs/cifs/smb2transport.c
index bf49cb73b9e6..8806f3f76c1d 100644
--- a/fs/cifs/smb2transport.c
+++ b/fs/cifs/smb2transport.c
@@ -604,7 +604,7 @@ int
smb2_check_receive(struct mid_q_entry *mid, struct TCP_Server_Info *server,
bool log_error)
{
- unsigned int len = get_rfc1002_length(mid->resp_buf);
+ unsigned int len = mid->resp_buf_size;
struct kvec iov[2];
struct smb_rqst rqst = { .rq_iov = iov,
.rq_nvec = 2 };