audk/SecurityPkg/Tcg
Michael Kubacki 54211ab10f SecurityPkg/Tcg2Smm: Initialize local Status variable
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3277

Initializes the Status variable in TcgMmReadyToLock().

Fixes a Clang build failure:
Tcg2Smm.c - SecurityPkg\Tcg\Tcg2Smm\Tcg2Smm.c:254:7: error:
variable 'Status' is used uninitialized whenever 'if'
condition is false [-Werror,-Wsometimes-uninitialized]

Initializing this variable is required to address a practical
scenario in which the return value of TcgMmReadyToLock() is
undefined based on conditional evaluation in the function.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Qi Zhang <qi1.zhang@intel.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Cc: Kun Qin <kun.q@outlook.com>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
2021-04-13 01:57:43 +00:00
..
MemoryOverwriteControl SecurityPkg/Tcg: Fix various typos 2020-02-10 22:30:07 +00:00
MemoryOverwriteRequestControlLock SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00
Opal/OpalPassword SecurityPkg/OpalPassword: Fix spelling mistake 2020-08-19 00:11:57 +00:00
PhysicalPresencePei SecurityPkg/Tcg: Fix various typos 2020-02-10 22:30:07 +00:00
Tcg2Acpi SecurityPkg: Tcg2Acpi: Added unblock memory interface for NVS region 2021-03-05 15:25:07 +00:00
Tcg2Config SecurityPkg/Tcg2Config: remove TPM2_ChangEPS if it is not supported. 2020-07-28 09:56:25 +00:00
Tcg2Dxe SecurityPkg/Tcg2Dxe: Add PcdTcgPfpMeasurementRevision in SpecId event. 2020-07-11 03:37:11 +00:00
Tcg2Pei SecurityPkg: Initailize variable Status before it is consumed. 2020-09-01 16:11:24 +00:00
Tcg2Smm SecurityPkg/Tcg2Smm: Initialize local Status variable 2021-04-13 01:57:43 +00:00
TcgConfigDxe SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00
TcgDxe SecurityPkg: Fix spelling errors 2019-10-23 10:23:23 -07:00
TcgPei SecurityPkg/TcgPei: Use Migrated FV Info Hob for calculating hash (CVE-2019-11098) 2020-07-28 01:43:16 +00:00
TcgSmm SecurityPkg Tcg: Use SW SMI IO port PCD in Tpm.asl 2020-04-21 02:20:51 +00:00