]> git.proxmox.com Git - mirror_edk2.git/commit
SecurityPkg/TcgPhysicalPresenceLib: Replace the ASSERT with error code
authorZhichao Gao <zhichao.gao@intel.com>
Mon, 16 Dec 2019 01:18:55 +0000 (09:18 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 7 Feb 2020 07:22:11 +0000 (07:22 +0000)
commit01712e65089297581036f17c0dca2801f4b694b3
tree8d78ccd1c64aa33784818af3b3a4d502eddd76e1
parentc6a6193d122a9cb0d11373b8fa43ce95724271f7
SecurityPkg/TcgPhysicalPresenceLib: Replace the ASSERT with error code

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2472

Replace the ASSERT with the error code return in the TpmPhysicalPresence
and GetTpmCapability.
Add missing error checking after call TpmPhysicalPresence in
TcgPhysicalPresenceLibProcessRequest.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Signed-off-by: Zhichao Gao <zhichao.gao@intel.com>
SecurityPkg/Library/DxeTcgPhysicalPresenceLib/DxeTcgPhysicalPresenceLib.c