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
)
This commit is contained in:
parent
7c9b9c8d93
commit
ac3d8922df
@ -146,7 +146,7 @@ EFI_STATUS tpm_log_event(uint32_t pcrindex, EFI_PHYSICAL_ADDRESS buffer, UINTN b
|
|||||||
EFI_TCG2 *tpm2;
|
EFI_TCG2 *tpm2;
|
||||||
EFI_STATUS err;
|
EFI_STATUS err;
|
||||||
|
|
||||||
assert(description);
|
assert(description || pcrindex == UINT32_MAX);
|
||||||
|
|
||||||
/* If EFI_SUCCESS is returned, will initialize ret_measured to true if we actually measured
|
/* If EFI_SUCCESS is returned, will initialize ret_measured to true if we actually measured
|
||||||
* something, or false if measurement was turned off. */
|
* something, or false if measurement was turned off. */
|
||||||
|
Loading…
Reference in New Issue
Block a user