mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-04 20:26:13 +02:00
efi_loader: fix EFI_ENTRY point on get_active_pcr_banks
efi_tcg2_get_active_pcr_banks doesn't immediately call the EFI_ENTRY() wrapper once it enters the function. Move the call a few lines above to cover the error cases properly as well. Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
parent
450afc350c
commit
e9fc018a55
@ -717,16 +717,16 @@ efi_tcg2_get_active_pcr_banks(struct efi_tcg2_protocol *this,
|
||||
struct udevice *dev;
|
||||
efi_status_t ret;
|
||||
|
||||
EFI_ENTRY("%p, %p", this, active_pcr_banks);
|
||||
|
||||
if (!this || !active_pcr_banks) {
|
||||
ret = EFI_INVALID_PARAMETER;
|
||||
goto out;
|
||||
}
|
||||
|
||||
ret = tcg2_platform_get_tpm2(&dev);
|
||||
if (ret != EFI_SUCCESS)
|
||||
goto out;
|
||||
|
||||
EFI_ENTRY("%p, %p", this, active_pcr_banks);
|
||||
ret = tcg2_get_active_pcr_banks(dev, active_pcr_banks);
|
||||
|
||||
out:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user