]> 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)
commite0f81a92e36ce74bd5c731529da4c3bc0c146fa5
treedcee2f880ff21b2ded1676c7483cb69729229e78
parent100f70ff62c03a570918126bf5a0c7af40533d95
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