summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/efi/libstub
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2022-09-16 13:02:16 +0200
committerArd Biesheuvel <ardb@kernel.org>2022-09-27 13:26:16 +0200
commit04419e8a7b41c83c628d45c684d6bd117c24cea9 (patch)
treeb412e5f6bfbf4f2dae35a3aa93bb526394a4e882 /drivers/firmware/efi/libstub
parent69e377b289376147c84cfd09bab1ad0328a0ecc6 (diff)
downloadlinux-04419e8a7b41c83c628d45c684d6bd117c24cea9.tar.gz
linux-04419e8a7b41c83c628d45c684d6bd117c24cea9.tar.bz2
linux-04419e8a7b41c83c628d45c684d6bd117c24cea9.zip
efi: libstub: fix up the last remaining open coded boot service call
We use a macro efi_bs_call() to call boot services, which is more concise, and on x86, it encapsulates the mixed mode handling. This code does not run in mixed mode, but let's switch to the macro for general tidiness. Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'drivers/firmware/efi/libstub')
-rw-r--r--drivers/firmware/efi/libstub/efi-stub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/firmware/efi/libstub/efi-stub.c b/drivers/firmware/efi/libstub/efi-stub.c
index 269df915675e..cf474f0dd261 100644
--- a/drivers/firmware/efi/libstub/efi-stub.c
+++ b/drivers/firmware/efi/libstub/efi-stub.c
@@ -154,8 +154,8 @@ efi_status_t __efiapi efi_pe_entry(efi_handle_t handle,
* information about the running image, such as size and the command
* line.
*/
- status = efi_system_table->boottime->handle_protocol(handle,
- &loaded_image_proto, (void *)&image);
+ status = efi_bs_call(handle_protocol, handle, &loaded_image_proto,
+ (void *)&image);
if (status != EFI_SUCCESS) {
efi_err("Failed to get loaded image protocol\n");
goto fail;