[PATCH] Fix StartImage() Data arguments to be NULL

5 views
Skip to first unread message

Christian Storm

unread,
Feb 3, 2021, 2:12:01 PM2/3/21
to efibootg...@googlegroups.com, Christian Storm
From: Christian Storm <christi...@siemens.com>

The ExitDataSize (2nd) and ExitData (3rd) arguments
to BS->StartImage() are pointers, so use NULL.

Signed-off-by: Christian Storm <christi...@siemens.com>
---
main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.c b/main.c
index 4c6eeb4..7949218 100644
--- a/main.c
+++ b/main.c
@@ -195,5 +195,5 @@ EFI_STATUS efi_main(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *system_table)
INFO(L"Starting %s with watchdog set to %d seconds ...\n",
bg_loader_params.payload_path, bg_loader_params.timeout);

- return uefi_call_wrapper(BS->StartImage, 3, payload_handle, 0, 0);
+ return uefi_call_wrapper(BS->StartImage, 3, payload_handle, NULL, NULL);
}
--
2.30.0

Jan Kiszka

unread,
Feb 4, 2021, 1:40:44 AM2/4/21
to [ext] Christian Storm, efibootg...@googlegroups.com
Thanks, this and the error_exit one applied to next.

Jan

--
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux
Reply all
Reply to author
Forward
0 new messages