Home
last modified time | relevance | path

Searched hist:"70 ea163699b68963e222a905e184f6436e8a290d" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/char/tpm/
H A Dtpm-interface.cdiff 70ea163699b68963e222a905e184f6436e8a290d Fri Feb 03 04:30:40 CST 2017 Dan Carpenter <dan.carpenter@oracle.com> tpm: silence an array overflow warning

We should check that we're within bounds first before checking that
"chip->active_banks[i] != TPM2_ALG_ERROR" so I've re-ordered the two
checks.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>