Skip to content

Commit

Permalink
ksmbd: use ksmbd_req_buf_next() in ksmbd_verify_smb_message()
Browse files Browse the repository at this point in the history
Use ksmbd_req_buf_next() in ksmbd_verify_smb_message().

Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Ralph Boehme <slow@samba.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
  • Loading branch information
slowfranklin authored and Steve French committed Nov 7, 2021
1 parent b5013d0 commit a088ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ksmbd/smb_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ int ksmbd_lookup_protocol_idx(char *str)
*/
int ksmbd_verify_smb_message(struct ksmbd_work *work)
{
struct smb2_hdr *smb2_hdr = work->request_buf + work->next_smb2_rcv_hdr_off;
struct smb2_hdr *smb2_hdr = ksmbd_req_buf_next(work);
struct smb_hdr *hdr;

if (smb2_hdr->ProtocolId == SMB2_PROTO_NUMBER)
Expand Down

0 comments on commit a088ac8

Please sign in to comment.