projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac82d35
)
efi/x86: Fix cast of image argument
author
Arvind Sankar
<nivedita@alum.mit.edu>
Sun, 8 Mar 2020 08:08:58 +0000
(09:08 +0100)
committer
Ingo Molnar
<mingo@kernel.org>
Sun, 8 Mar 2020 09:00:08 +0000
(10:00 +0100)
handle_protocol() expects void **, not void *.
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link:
https://lore.kernel.org/r/20200305143642.820865-1-nivedita@alum.mit.edu
Link:
https://lore.kernel.org/r/20200308080859.21568-28-ardb@kernel.org
drivers/firmware/efi/libstub/x86-stub.c
patch
|
blob
|
history
diff --git
a/drivers/firmware/efi/libstub/x86-stub.c
b/drivers/firmware/efi/libstub/x86-stub.c
index 383f59d44fbea8d5ba3cf746d0d27a30ecf50028..8d3a707789de83fd3c713a081505dbd8a2b33346 100644
(file)
--- a/
drivers/firmware/efi/libstub/x86-stub.c
+++ b/
drivers/firmware/efi/libstub/x86-stub.c
@@
-383,7
+383,7
@@
efi_status_t __efiapi efi_pe_entry(efi_handle_t handle,
if (sys_table->hdr.signature != EFI_SYSTEM_TABLE_SIGNATURE)
efi_exit(handle, EFI_INVALID_PARAMETER);
- status = efi_bs_call(handle_protocol, handle, &proto, (void *)&image);
+ status = efi_bs_call(handle_protocol, handle, &proto, (void *
*
)&image);
if (status != EFI_SUCCESS) {
efi_printk("Failed to get handle for LOADED_IMAGE_PROTOCOL\n");
efi_exit(handle, status);