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

tpm: fix response size validation in tpm_get_random()

When checking whether the response is large enough to be able to contain
the received random bytes in tpm_get_random() and tpm2_get_random(),
they fail to take account the header size, which should be added to the
minimum size. This commit fixes this issue.

Cc: stable@vger.kernel.org
Fixes: c659af78

 ("tpm: Check size of response before accessing data")
Signed-off-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
parent 2ecefa0a
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