diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2017-11-20 11:24:39 +1100 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2018-01-24 19:49:04 -0600 |
commit | 1f444e4c06e76e6f463a1c1a19f05a14b100e07b (patch) | |
tree | 8f6d261bf61a6b7603733391f37023b804588319 /fs/cifs/smb2pdu.c | |
parent | 4f33bc35875ae6df5058f5f646fd3f0d3f7c8b04 (diff) | |
download | linux-1f444e4c06e76e6f463a1c1a19f05a14b100e07b.tar.gz linux-1f444e4c06e76e6f463a1c1a19f05a14b100e07b.tar.bz2 linux-1f444e4c06e76e6f463a1c1a19f05a14b100e07b.zip |
cifs: remove rfc1002 header from smb2_flush_req
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Acked-by: Pavel Shilovsky <pshilov@microsoft.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Diffstat (limited to 'fs/cifs/smb2pdu.c')
-rw-r--r-- | fs/cifs/smb2pdu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index d0616398503a..057d9e5e769a 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -2433,13 +2433,14 @@ SMB2_flush(const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid, int resp_buftype; int rc = 0; int flags = 0; + unsigned int total_len; cifs_dbg(FYI, "Flush\n"); if (!ses || !(ses->server)) return -EIO; - rc = small_smb2_init(SMB2_FLUSH, tcon, (void **) &req); + rc = smb2_plain_req_init(SMB2_FLUSH, tcon, (void **) &req, &total_len); if (rc) return rc; @@ -2450,10 +2451,9 @@ SMB2_flush(const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid, req->VolatileFileId = volatile_fid; iov[0].iov_base = (char *)req; - /* 4 for rfc1002 length field */ - iov[0].iov_len = get_rfc1002_length(req) + 4; + iov[0].iov_len = total_len; - rc = SendReceive2(xid, ses, iov, 1, &resp_buftype, flags, &rsp_iov); + rc = smb2_send_recv(xid, ses, iov, 1, &resp_buftype, flags, &rsp_iov); cifs_small_buf_release(req); if (rc != 0) |