mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-21 09:33:57 +03:00
boot: Fix assertion failure
The TPM code expects a description unless the PCR index indicates that no measurements have to take place. The assert was preempting this check from happening. Fixes: #26428 (cherry picked from commitf92428eae5
) (cherry picked from commitcd5de2811a
) (cherry picked from commitac3d8922df
) (cherry picked from commit2cf90e13f5
)
This commit is contained in:
parent
8e8c7d5114
commit
8a9b918e17
@ -139,7 +139,7 @@ EFI_STATUS tpm_log_event(UINT32 pcrindex, const EFI_PHYSICAL_ADDRESS buffer, UIN
|
||||
EFI_TCG *tpm1;
|
||||
EFI_TCG2 *tpm2;
|
||||
|
||||
assert(description);
|
||||
assert(description || pcrindex == UINT32_MAX);
|
||||
|
||||
tpm2 = tcg2_interface_check();
|
||||
if (tpm2)
|
||||
|
Loading…
Reference in New Issue
Block a user