Skip to content

Commit 0347d8c

Browse files
nivedita76Ingo Molnar
authored andcommitted
efi/x86: Fix cast of image argument
handle_protocol() expects void **, not void *. Signed-off-by: Arvind Sankar <[email protected]> Signed-off-by: Ard Biesheuvel <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Link: https://lore.kernel.org/r/[email protected]
1 parent ac82d35 commit 0347d8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/firmware/efi/libstub/x86-stub.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ efi_status_t __efiapi efi_pe_entry(efi_handle_t handle,
383383
if (sys_table->hdr.signature != EFI_SYSTEM_TABLE_SIGNATURE)
384384
efi_exit(handle, EFI_INVALID_PARAMETER);
385385

386-
status = efi_bs_call(handle_protocol, handle, &proto, (void *)&image);
386+
status = efi_bs_call(handle_protocol, handle, &proto, (void **)&image);
387387
if (status != EFI_SUCCESS) {
388388
efi_printk("Failed to get handle for LOADED_IMAGE_PROTOCOL\n");
389389
efi_exit(handle, status);

0 commit comments

Comments
 (0)