]> git.baikalelectronics.ru Git - kernel.git/commit
tpm: fix type of a local variable in tpm2_map_command()
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 13 Sep 2017 17:04:35 +0000 (10:04 -0700)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 18 Oct 2017 15:28:48 +0000 (18:28 +0300)
commit90a4e40aafb2e59d96de885f0978dd8163da1f84
tree43cb5ce1da2326094a87a8bcaff6d9c1a0cb36fe
parentcd3d636eaaafd3680952f71c77db9e50916e7918
tpm: fix type of a local variable in tpm2_map_command()

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

Fixes: ad56a2ed831a ("tpm: infrastructure for TPM spaces")
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
drivers/char/tpm/tpm2-space.c