Skip to content
Commit ebfd7532 authored by Jarkko Sakkinen's avatar Jarkko Sakkinen
Browse files

tpm: add check for minimum buffer size in tpm_transmit()



tpm_transmit() does not check that bufsiz is at least TPM_HEADER_SIZE
before accessing data. This commit adds this check and returns -EINVAL
if it fails.

Signed-off-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
parent 0014777f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment