aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2017-02-03 10:30:40 +0000
committerJarkko Sakkinen <[email protected]>2017-02-03 20:33:55 +0000
commit70ea163699b68963e222a905e184f6436e8a290d (patch)
tree80821aaaa0c0402158a769ad88c03d7437c3069c /security/selinux/hooks.c
parenttpm: fix the type of owned field in cap_t (diff)
downloadkernel-70ea163699b68963e222a905e184f6436e8a290d.tar.gz
kernel-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 <[email protected]> Reviewed-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions