x86_64_efi: return after LoadImage-failure panic under UNIT_TEST

panic() returns under UNIT_TEST, so the LoadImage-failure site fell
through to StartImage on a failed load. Add the return to match the
zero-size guard; on target panic() never returns, so behavior is
unchanged.
pull/882/head
Daniele Lacamera 2026-09-04 15:52:27 +02:00
parent 58e79daec7
commit 01a71c7d39
1 changed files with 1 additions and 0 deletions

View File

@ -158,6 +158,7 @@ void RAMFUNCTION x86_64_efi_do_boot(const uint32_t *boot_addr)
if (status != EFI_SUCCESS) {
wolfBoot_printf("can't load kernel image from memory\n");
panic();
return; /* Never reached on target, where panic() does not return */
}
/* Hand the authenticated command line to the loaded image via LoadOptions