[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 37/37] chainloader: Use grub_efi_...() memory helpers where re
From: |
Leo Sandoval |
Subject: |
[PATCH v1 37/37] chainloader: Use grub_efi_...() memory helpers where reasonable. |
Date: |
Mon, 7 Oct 2024 12:21:10 -0600 |
From: Peter Jones <pjones@redhat.com>
This uses grub_efi_allocate_pool(), grub_efi_free_pool(), and
grub_efi_free_pages() instead of open-coded efi_call_N() calls, so we
get more reasonable type checking.
Signed-off-by: Peter Jones <pjones@redhat.com>
---
grub-core/loader/efi/chainloader.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/grub-core/loader/efi/chainloader.c
b/grub-core/loader/efi/chainloader.c
index 1de98f783..203692450 100644
--- a/grub-core/loader/efi/chainloader.c
+++ b/grub-core/loader/efi/chainloader.c
@@ -95,7 +95,7 @@ grub_chainloader_boot (void *context)
}
if (exit_data)
- b->free_pool (exit_data);
+ grub_efi_free_pool (exit_data);
grub_loader_unset ();
@@ -419,7 +419,7 @@ grub_cmd_chainloader (grub_command_t cmd __attribute__
((unused)),
grub_free (file_path);
if (address)
- b->free_pages (address, pages);
+ grub_efi_free_pages (address, pages);
if (image_handle != NULL)
b->unload_image (image_handle);
--
2.46.2
- Re: [PATCH v1 33/37] btrfs: grub2-btrfs-06-subvol-mount, (continued)
[PATCH v1 19/37] grub-set-password.in: Add friendly grub2 password config tool (#985962), Leo Sandoval, 2024/10/07
[PATCH v1 26/37] 30_os-prober.in: just build chainloader entries, don't try any xnu xnu., Leo Sandoval, 2024/10/07
[PATCH v1 25/37] grub.texi: Make our info pages say "grub2" where appropriate., Leo Sandoval, 2024/10/07
[PATCH v1 28/37] btrfs: fix a bad null check, Leo Sandoval, 2024/10/07
[PATCH v1 37/37] chainloader: Use grub_efi_...() memory helpers where reasonable.,
Leo Sandoval <=
[PATCH v1 31/37] btrfs: grub2-btrfs-04-grub2-install, Leo Sandoval, 2024/10/07
[PATCH v1 36/37] efi: Add grub_efi_allocate_pool() and grub_efi_free_pool() wrappers., Leo Sandoval, 2024/10/07
[PATCH v1 20/37] net/tcp: add window scaling support, Leo Sandoval, 2024/10/07
[PATCH v1 32/37] btdfs: grub2-btrfs-05-grub2-mkconfig, Leo Sandoval, 2024/10/07