boot: check that ret_version is valid in tpm_log_tagged_event
In a project I'm working on I recently observed a boot failure
with the most recent version of systemd. It seems it is triggered
by bb19b61049 which fixed a bug that now leads to the function
being excuted differently. The code is missing a check if
`*ret_version` is actually valid in the `ret_measured = true`
case.
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
c681543680
commit
95aff47112
+2
-1
@@ -312,7 +312,8 @@ EFI_STATUS tpm_log_tagged_event(
|
||||
if (err != EFI_SUCCESS)
|
||||
return err;
|
||||
|
||||
*ret_measured = true;
|
||||
if (ret_measured)
|
||||
*ret_measured = true;
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user