[PATCH v3 1/7] tpm: move length validation to tpm_transmit()

2017-03-03 Thread Jarkko Sakkinen
Check that the length matches the length reported by the response header already in tpm_transmit() to improve validation. Signed-off-by: Jarkko Sakkinen Tested-by: James Bottomley Reviewed-by: James Bottomley

[PATCH v3 1/7] tpm: move length validation to tpm_transmit()

2017-03-03 Thread Jarkko Sakkinen
Check that the length matches the length reported by the response header already in tpm_transmit() to improve validation. Signed-off-by: Jarkko Sakkinen Tested-by: James Bottomley Reviewed-by: James Bottomley --- drivers/char/tpm/tpm-interface.c | 20 1 file changed, 12