tpm, tpm_crb: fix le64_to_cpu conversions in crb_acpi_add()
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tue, 9 Jun 2015 12:07:59 +0000 (15:07 +0300)
committerPeter Huewe <peterhuewe@gmx.de>
Tue, 16 Jun 2015 21:27:16 +0000 (23:27 +0200)
commit49afd7289bd937401c5f7faa193054bc3c41dad6
tree0744d4332e88262fe8ef61f427257e21860f74b5
parent9d75f08946e8485109458ccf16f714697c207f41
tpm, tpm_crb: fix le64_to_cpu conversions in crb_acpi_add()

le64_to_cpu() was applied twice to the physical addresses read from the
control area. This hasn't shown any visible regressions because CRB
driver has been tested only on the little endian platofrms so far.

Reported-by: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-By: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Cc: <stable@vger.kernel.org>
Fixes: 30fc8d138e91 ("tpm: TPM 2.0 CRB Interface")
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
drivers/char/tpm/tpm_crb.c