]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit947bdba98b1e2653dd3d365f1c425f97ac60d69d
tree0744d4332e88262fe8ef61f427257e21860f74b5
parent73e53e512f7fc0718dc40afacba95adf582acde7
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: 94480f0b9907 ("tpm: TPM 2.0 CRB Interface")
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
drivers/char/tpm/tpm_crb.c