mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 22:21:42 +00:00
ksmbd: use ksmbd_req_buf_next() in ksmbd_verify_smb_message()
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>
This commit is contained in:
parent
b5013d084e
commit
a088ac859f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user