From 15f192fbc765ce364bc93cd6c6c974a5bb32b854 Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Mon, 30 Nov 2015 11:14:17 -0500 Subject: [PATCH] tpm: Remove check for working TPM from TPM interrupt handler Remove the check for a working TPM from the TPM interrupt handler. This then allows the individual API calls to return information even if the TPM was not working correctly. Some API calls will still run into the check. Signed-off-by: Stefan Berger --- src/tcgbios.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/tcgbios.c b/src/tcgbios.c index d1a7f6b..c17d80d 100644 --- a/src/tcgbios.c +++ b/src/tcgbios.c @@ -1102,11 +1102,6 @@ tpm_interrupt_handler32(struct bregs *regs) set_cf(regs, 0); - if (!has_working_tpm()) { - regs->eax = TCG_GENERAL_ERROR; - return; - } - switch ((enum irq_ids)regs->al) { case TCG_StatusCheck: if (is_tpm_present() == 0) { -- 2.39.5