mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-03 01:17:45 +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
)
This commit is contained in:
parent
292debc981
commit
2cf90e13f5
@ -143,7 +143,7 @@ EFI_STATUS tpm_log_event(UINT32 pcrindex, EFI_PHYSICAL_ADDRESS buffer, UINTN buf
|
|||||||
EFI_TCG *tpm1;
|
EFI_TCG *tpm1;
|
||||||
EFI_TCG2 *tpm2;
|
EFI_TCG2 *tpm2;
|
||||||
|
|
||||||
assert(description);
|
assert(description || pcrindex == UINT32_MAX);
|
||||||
|
|
||||||
/* PCR disabled */
|
/* PCR disabled */
|
||||||
if (pcrindex == UINT32_MAX)
|
if (pcrindex == UINT32_MAX)
|
||||||
|
Loading…
Reference in New Issue
Block a user