]> git.baikalelectronics.ru Git - kernel.git/commit
tpm, tpm_crb: fail when TPM2 ACPI table contents look corrupted
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 24 Jun 2015 14:14:55 +0000 (17:14 +0300)
committerPeter Huewe <peterhuewe@gmx.de>
Mon, 13 Jul 2015 21:34:12 +0000 (23:34 +0200)
commitf624674a64d4912d31dc041516160b42c8f54c77
treebd428e4d43248d258ba4a075d19ae39967e2a0b2
parent2b4352dc324acddbbbe9f771d2b1be9b9a7edc06
tpm, tpm_crb: fail when TPM2 ACPI table contents look corrupted

At least some versions of AMI BIOS have corrupted contents in the TPM2
ACPI table and namely the physical address of the control area is set to
zero.

This patch changes the driver to fail gracefully  when we observe a zero
address instead of continuing to ioremap.

Cc: <stable@vger.kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
drivers/char/tpm/tpm_crb.c