tpmdd updates for Linux 4.9
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: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
1 file changed