]> xenbits.xensource.com Git - seabios.git/commitdiff
tpm: Remove check for working TPM from TPM interrupt handler
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Mon, 30 Nov 2015 16:14:17 +0000 (11:14 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 20 Dec 2015 19:36:15 +0000 (14:36 -0500)
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 <stefanb@linux.vnet.ibm.com>
src/tcgbios.c

index d1a7f6b8f8f08e67770d36fe333ffdad8cdea062..c17d80dba653555d868da4c2ee0695b238d512a6 100644 (file)
@@ -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) {