]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcd3d636eaaafd3680952f71c77db9e50916e7918
treefd40e87f3a4454fc954392de7ba32b03ddccd29c
parent0849ec0340d20eede9b3be7b50a07c73c308a663
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: 07a298bef416 ("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