Skip to content

Commit a088ac8

Browse files
slowfranklinsmfrench
authored andcommitted
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 <[email protected]> Signed-off-by: Ralph Boehme <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent b5013d0 commit a088ac8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ksmbd/smb_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ int ksmbd_lookup_protocol_idx(char *str)
132132
*/
133133
int ksmbd_verify_smb_message(struct ksmbd_work *work)
134134
{
135-
struct smb2_hdr *smb2_hdr = work->request_buf + work->next_smb2_rcv_hdr_off;
135+
struct smb2_hdr *smb2_hdr = ksmbd_req_buf_next(work);
136136
struct smb_hdr *hdr;
137137

138138
if (smb2_hdr->ProtocolId == SMB2_PROTO_NUMBER)

0 commit comments

Comments
 (0)