tpm: fix type of a local variable in tpm2_get_cc_attrs_tbl()
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 13 Sep 2017 16:58:49 +0000 (09:58 -0700)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 18 Oct 2017 15:28:48 +0000 (18:28 +0300)
commit171360d7800c19622dbdaf202ed6f48ff24a5ae2
treefd40e87f3a4454fc954392de7ba32b03ddccd29c
parentee70bc1e7b63ac8023c9ff9475d8741e397316e7
tpm: fix type of a local variable in tpm2_get_cc_attrs_tbl()

The local variable 'attrs' should have the type __be32 instead of u32.

Fixes: 58472f5cd4f6 ("tpm: validate TPM 2.0 commands")
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
drivers/char/tpm/tpm2-cmd.c