mirror of https://github.com/wolfSSL/wolfBoot.git
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
parent
58e79daec7
commit
01a71c7d39
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue