mirror of
https://github.com/acidanthera/audk.git
synced 2025-09-25 18:48:42 +02:00
SecurityPkg: add TIS sanity check (tpm12)
The code blindly assumes a TIS interface is present in case both CRB and FIFO checks fail. Check the InterfaceType for TIS instead and only return PtpInterfaceTis in case it matches, PtpInterfaceMax otherwise. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
parent
ed3846cb5a
commit
768c15fa7d
@ -91,9 +91,13 @@ Tpm12GetPtpInterface (
|
||||
return PtpInterfaceFifo;
|
||||
}
|
||||
|
||||
if (InterfaceId.Bits.InterfaceType == PTP_INTERFACE_IDENTIFIER_INTERFACE_TYPE_TIS) {
|
||||
return PtpInterfaceTis;
|
||||
}
|
||||
|
||||
return PtpInterfaceMax;
|
||||
}
|
||||
|
||||
/**
|
||||
Check whether the value of a TPM chip register satisfies the input BIT setting.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user