We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a088ac8 commit b83b279Copy full SHA for b83b279
fs/ksmbd/smb2misc.c
@@ -347,17 +347,12 @@ static int smb2_validate_credit_charge(struct ksmbd_conn *conn,
347
348
int ksmbd_smb2_check_message(struct ksmbd_work *work)
349
{
350
- struct smb2_pdu *pdu = work->request_buf;
+ struct smb2_pdu *pdu = ksmbd_req_buf_next(work);
351
struct smb2_hdr *hdr = &pdu->hdr;
352
int command;
353
__u32 clc_len; /* calculated length */
354
__u32 len = get_rfc1002_len(pdu);
355
356
- if (work->next_smb2_rcv_hdr_off) {
357
- pdu = ksmbd_req_buf_next(work);
358
- hdr = &pdu->hdr;
359
- }
360
-
361
if (le32_to_cpu(hdr->NextCommand) > 0) {
362
len = le32_to_cpu(hdr->NextCommand);
363
} else if (work->next_smb2_rcv_hdr_off) {
0 commit comments