diff options
author | Stefan Berger <stefanb@linux.vnet.ibm.com> | 2017-01-19 13:19:12 +0100 |
---|---|---|
committer | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | 2017-01-23 17:28:18 +0100 |
commit | c659af78eb7b7d7be40f23d9d97bde58eb1368ac (patch) | |
tree | 88dfa2afb97240abe521a65639795bd969eb749e /drivers/spi/spi-tegra20-sflash.c | |
parent | tpm_tis: use default timeout value if chip reports it as zero (diff) | |
download | linux-c659af78eb7b7d7be40f23d9d97bde58eb1368ac.tar.xz linux-c659af78eb7b7d7be40f23d9d97bde58eb1368ac.zip |
tpm: Check size of response before accessing data
Make sure that we have not received less bytes than what is indicated
in the header of the TPM response. Also, check the number of bytes in
the response before accessing its data.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkine@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkine@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkine@linux.intel.com>
Diffstat (limited to 'drivers/spi/spi-tegra20-sflash.c')
0 files changed, 0 insertions, 0 deletions