Re: [edk2-devel] [PATCH 2/2] SecurityPkg: add TIS sanity check (tpm12)

2023-04-27 Thread Yao, Jiewen
Reviewed-by: Jiewen Yao > -Original Message- > From: Gerd Hoffmann > Sent: Thursday, April 27, 2023 12:24 AM > To: devel@edk2.groups.io > Cc: Wang, Jian J ; Pawel Polawski > ; Oliver Steffen ; Yao, > Jiewen ; Gerd Hoffmann > Subject: [PATCH 2/2] SecurityPkg: add TIS sanity check (tpm12)

[edk2-devel] [PATCH 2/2] SecurityPkg: add TIS sanity check (tpm12)

2023-04-26 Thread Gerd Hoffmann
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 --- SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12Tis.c |