]> xenbits.xensource.com Git - ovmf.git/commit
SecurityPkg: add TIS sanity check (tpm2)
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 26 Apr 2023 16:24:04 +0000 (00:24 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 2 May 2023 15:43:32 +0000 (15:43 +0000)
commit832fbc6e32012fe29f1a6c67ddc90facb43ebeee
tree8e8d9824b1452fa5ff362e438ec03f0399bbda63
parent23c71536efbebed57942947668f470f934324477
SecurityPkg: add TIS sanity check (tpm2)

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 Tpm2PtpInterfaceTis in case it matches, Tpm2PtpInterfaceMax
otherwise.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2Ptp.c