summaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2pdu.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <lsahlber@redhat.com>2018-06-01 02:53:05 +0200
committerSteve French <stfrench@microsoft.com>2018-06-01 04:30:51 +0200
commite4dc31fe9ace8f0134f835d3f34fb84f598deefc (patch)
tree7ee0aac5ab1c9f123505fd2e8aae4cae214a096f /fs/cifs/smb2pdu.c
parentcifs: update smb2_calc_size to use smb2_sync_hdr instead of smb2_hdr (diff)
downloadlinux-e4dc31fe9ace8f0134f835d3f34fb84f598deefc.tar.xz
linux-e4dc31fe9ace8f0134f835d3f34fb84f598deefc.zip
cifs: change smb2_get_data_area_len to take a smb2_sync_hdr as argument
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/smb2pdu.c')
-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 35fbd9261ca0..21b69badcd31 100644
--- a/fs/cifs/smb2pdu.c
+++ b/fs/cifs/smb2pdu.c
@@ -767,7 +767,7 @@ SMB2_negotiate(const unsigned int xid, struct cifs_ses *ses)
server->capabilities |= SMB2_NT_FIND | SMB2_LARGE_FILES;
security_blob = smb2_get_data_area_len(&blob_offset, &blob_length,
- &rsp->hdr);
+ &rsp->hdr.sync_hdr);
/*
* See MS-SMB2 section 2.2.4: if no blob, client picks default which
* for us will be