PR #1695 possible NULL deregerence was triggering static analyzer failure. Added a NULL check before dereferencing. Signed-off-by: Bejean Mosher <bejean.mosher@intel.com> Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>
This commit is contained in:
parent
15f365d774
commit
2d73d46d09
|
@ -989,7 +989,9 @@ BuildExtraInfoHob (
|
|||
|
||||
TpmLibGetActivePcrBanks (&SecureBootInfoHob->TpmPcrActivePcrBanks);
|
||||
|
||||
SecureBootInfoHob->FirmwareDebuggerInitialized = ((LoaderPlatformInfo->HwState >> 2) || (LoaderPlatformInfo->HwState >> 3));
|
||||
if (LoaderPlatformInfo != NULL) {
|
||||
SecureBootInfoHob->FirmwareDebuggerInitialized = ((LoaderPlatformInfo->HwState >> 2) || (LoaderPlatformInfo->HwState >> 3));
|
||||
}
|
||||
|
||||
// SBL supports only TPM 2.0
|
||||
if (SecureBootInfoHob->MeasuredBootEnabled) {
|
||||
|
|
Loading…
Reference in New Issue