mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-07-25 08:22:49 +00:00
unhook_system_services: bail on systab == NULL
Prevent unhook_system_services() from dereferencing a NULL systab, which may occur if hook_system_services() has never been called. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
This commit is contained in:
parent
a30276e095
commit
77cdb40423
@ -70,6 +70,9 @@ static EFI_HANDLE last_loaded_image;
|
||||
void
|
||||
unhook_system_services(void)
|
||||
{
|
||||
if (!systab)
|
||||
return;
|
||||
|
||||
systab->BootServices->Exit = system_exit;
|
||||
systab->BootServices->LoadImage = system_load_image;
|
||||
systab->BootServices->StartImage = system_start_image;
|
||||
|
Loading…
Reference in New Issue
Block a user