]> git.baikalelectronics.ru Git - kernel.git/commit
ksmbd: use buf_data_size instead of recalculation in smb3_decrypt_req()
authorNamjae Jeon <linkinjeon@kernel.org>
Mon, 4 Oct 2021 11:44:52 +0000 (20:44 +0900)
committerSteve French <stfrench@microsoft.com>
Thu, 7 Oct 2021 15:18:29 +0000 (10:18 -0500)
commitc7705eec78c999485609274c7ac5c27def8b84f1
treedcee2f880ff21b2ded1676c7483cb69729229e78
parent51a1387393d98c2ba52d53d089720fa9f1463178
ksmbd: use buf_data_size instead of recalculation in smb3_decrypt_req()

Tom suggested to use buf_data_size that is already calculated, to verify
these offsets.

Cc: Tom Talpey <tom@talpey.com>
Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Cc: Ralph Böhme <slow@samba.org>
Suggested-by: Tom Talpey <tom@talpey.com>
Acked-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/smb2pdu.c