mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-06 12:58:22 +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 commit f92428eae53685f372775e8cb0f0f4c249f02724)
This commit is contained in:
parent
01b90e1588
commit
cd5de2811a
@ -146,7 +146,7 @@ EFI_STATUS tpm_log_event(uint32_t pcrindex, EFI_PHYSICAL_ADDRESS buffer, size_t
|
||||
EFI_TCG2 *tpm2;
|
||||
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
|
||||
* something, or false if measurement was turned off. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user