]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: esrt: wrong type for LocateHandleBuffer()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 8 Apr 2021 07:15:52 +0000 (09:15 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 10 Apr 2021 10:00:24 +0000 (12:00 +0200)
efi_locate_handle_buffer() expects no_handles to be of type efi_uintn_t *.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_esrt.c

index a750164bc4c2970c3ad753ec37a6756e379efe7b..40f53260e4db7b2f765f024b2935f8189b033e38 100644 (file)
@@ -316,7 +316,7 @@ efi_status_t efi_esrt_populate(void)
 {
        efi_handle_t *base_handle = NULL;
        efi_handle_t *it_handle;
-       size_t no_handles = 0;
+       efi_uintn_t no_handles = 0;
        struct efi_firmware_management_protocol *fmp;
        efi_status_t ret;
        u32 num_entries = 0;