Commit 04419e8a authored by Ard Biesheuvel's avatar Ard Biesheuvel

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: default avatarArd Biesheuvel <ardb@kernel.org>
parent 69e377b2
...@@ -154,8 +154,8 @@ efi_status_t __efiapi efi_pe_entry(efi_handle_t handle, ...@@ -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 * information about the running image, such as size and the command
* line. * line.
*/ */
status = efi_system_table->boottime->handle_protocol(handle, status = efi_bs_call(handle_protocol, handle, &loaded_image_proto,
&loaded_image_proto, (void *)&image); (void *)&image);
if (status != EFI_SUCCESS) { if (status != EFI_SUCCESS) {
efi_err("Failed to get loaded image protocol\n"); efi_err("Failed to get loaded image protocol\n");
goto fail; goto fail;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment