diff options
author | Tom Rini <trini@konsulko.com> | 2024-06-24 09:49:37 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-06-24 09:49:37 -0600 |
commit | 58f7ae116c1c86a5ce1e0220f2c5a2673f7018ce (patch) | |
tree | 1f113c18373ae94fb1e51f8bc30dcfedf8d03a37 /lib/tpm-v2.c | |
parent | c326bb6792240d136e545ab9971aeae2b816088c (diff) | |
parent | b73948c785d2bbccf0a76dec92cf50fe5b408c0e (diff) |
Merge tag 'tpm-master-24062024' of https://source.denx.de/u-boot/custodians/u-boot-tpm
When the EFI TCG measurement code moved from EFI to the TPM subsystem for
general use some prototypes changed from returning efi_status_t to int,
which is more appropriate for the non-EFI APIs. However, some of the
EFI callsites never changed and we ended up assigning the int value to
efi_status_t.
This is unlikely to cause any problems, apart from returning invalid
values on failures and violating the EFI spec.
Diffstat (limited to 'lib/tpm-v2.c')
-rw-r--r-- | lib/tpm-v2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tpm-v2.c b/lib/tpm-v2.c index a67daed2f3c..91526af33ac 100644 --- a/lib/tpm-v2.c +++ b/lib/tpm-v2.c @@ -554,7 +554,7 @@ int tcg2_log_prepare_buffer(struct udevice *dev, struct tcg2_event_log *elog, if (elog->log_size) { if (log.found) { if (elog->log_size < log.log_position) - return -ENOSPC; + return -ENOBUFS; /* * Copy the discovered log into the user buffer |