diff options
| author | Matthew Garrett <mjg@redhat.com> | 2012-06-18 17:31:11 -0400 |
|---|---|---|
| committer | Matthew Garrett <mjg@redhat.com> | 2012-06-18 17:31:42 -0400 |
| commit | 49ebaa4b918164b1a6bf3090b13d784e7e99d9fb (patch) | |
| tree | ef55a911f0e4f1829512692fcf555c58ef1fc146 | |
| parent | 019b0c5c139e66e8180bd9f5a4a08f2420528195 (diff) | |
| download | efi-boot-shim-49ebaa4b918164b1a6bf3090b13d784e7e99d9fb.tar.gz efi-boot-shim-49ebaa4b918164b1a6bf3090b13d784e7e99d9fb.zip | |
Uninstall protocol on exit
| -rw-r--r-- | shim.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -855,6 +855,7 @@ EFI_STATUS efi_main (EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *passed_systab) EFI_GUID shim_lock_guid = SHIM_LOCK_GUID; static SHIM_LOCK shim_lock_interface; EFI_HANDLE handle = NULL; + EFI_STATUS efi_status; shim_lock_interface.Verify = shim_verify; @@ -866,5 +867,10 @@ EFI_STATUS efi_main (EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *passed_systab) &shim_lock_guid, EFI_NATIVE_INTERFACE, &shim_lock_interface); - return init_grub(image_handle); + efi_status = init_grub(image_handle); + + uefi_call_wrapper(BS->UninstallProtocolInterface, 3, handle, + &shim_lock_guid, &shim_lock_interface); + + return efi_status; } |
