boot: Fix assertion failure
authorJan Janssen <medhefgo@web.de>
Thu, 16 Feb 2023 14:24:44 +0000 (15:24 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 16 Feb 2023 20:01:53 +0000 (05:01 +0900)
commitf92428eae53685f372775e8cb0f0f4c249f02724
tree3b8c6bb091db845b0fa9a19284d6ba16a9056541
parent2d5ccb0818a7c9fdc280eb84478a6b89cd46b6fe
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
src/boot/efi/measure.c