]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tpm: fix the type of owned field in cap_t
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Tue, 31 Jan 2017 18:43:59 +0000 (13:43 -0500)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Fri, 3 Feb 2017 20:03:14 +0000 (22:03 +0200)
commita118cf2a5b5a0d4541d04e8e8fcde8564803330c
treebe1c5e34aa6771b89c9b898d7e7ae90ee8cb9fea
parent4d23cc323cdbee1cbcd8a7f059fff9ef2b0c473d
tpm: fix the type of owned field in cap_t

In cap_t the size of the type bool is assumed to be one byte. This
commit sorts out the issue by changing the type to u8.

Fixes: c659af78eb7b ("tpm: Check size of response before accessing data")
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm.h