diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-02-03 11:30:40 +0100 |
---|---|---|
committer | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | 2017-02-03 21:33:55 +0100 |
commit | 70ea163699b68963e222a905e184f6436e8a290d (patch) | |
tree | 80821aaaa0c0402158a769ad88c03d7437c3069c /security/selinux | |
parent | tpm: fix the type of owned field in cap_t (diff) | |
download | linux-70ea163699b68963e222a905e184f6436e8a290d.tar.xz linux-70ea163699b68963e222a905e184f6436e8a290d.zip |
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>
Diffstat (limited to 'security/selinux')
0 files changed, 0 insertions, 0 deletions