efi/libstub: fix prototype of efi_tcg2_protocol::get_event_log()
authorArd Biesheuvel <ardb@kernel.org>
Mon, 2 Nov 2020 09:04:39 +0000 (10:04 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 19 Jan 2021 16:57:15 +0000 (17:57 +0100)
efi_tcg2_protocol::get_event_log() takes a protocol pointer as the
first argument, not a EFI handle.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/efistub.h

index b50a6c6..2b7438b 100644 (file)
@@ -672,7 +672,7 @@ typedef union efi_tcg2_protocol efi_tcg2_protocol_t;
 union efi_tcg2_protocol {
        struct {
                void *get_capability;
-               efi_status_t (__efiapi *get_event_log)(efi_handle_t,
+               efi_status_t (__efiapi *get_event_log)(efi_tcg2_protocol_t *,
                                                       efi_tcg2_event_log_format,
                                                       efi_physical_addr_t *,
                                                       efi_physical_addr_t *,