Commit 277127d1 authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by Peter Jones

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: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
parent 4dabdb22
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment