]> git.ipfire.org Git - thirdparty/grub.git/commit
efi: Make EFI PXE protocol methods non-callable
authorArd Biesheuvel <ardb@kernel.org>
Tue, 23 May 2023 15:31:41 +0000 (17:31 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 25 May 2023 14:48:00 +0000 (16:48 +0200)
commit6ebfecf461792f212d4956cd289c8bcd02556617
treeb7269bf703b6a50f9e245b39452bd086c201b0a9
parent78bc9a9b2bd812c32a0f9773d30a5ed46ba568a5
efi: Make EFI PXE protocol methods non-callable

The grub_efi_pxe_t struct definition has placeholders for the various
protocol method pointers, given that they are never called in the code,
and the prototypes have been omitted, and therefore do not comply with
the UEFI spec.

So let's convert them into void* pointers, so they cannot be called
inadvertently.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
include/grub/efi/api.h