summaryrefslogtreecommitdiff
path: root/shim.c
diff options
context:
space:
mode:
authorBenjamin Antin <ben.antin@endlessm.com>2016-07-18 12:28:12 -0700
committerPeter Jones <pjones@redhat.com>2016-09-06 14:57:33 -0400
commit7052e75307553edc8f04eb529b0d37844fbcc30b (patch)
treeee66a7285379a928ac46036fc2ef8cfb3cca7a1a /shim.c
parentcc1fe3c6695f5edebe7608f2467b24634d4448bc (diff)
downloadefi-boot-shim-7052e75307553edc8f04eb529b0d37844fbcc30b.tar.gz
efi-boot-shim-7052e75307553edc8f04eb529b0d37844fbcc30b.zip
Don't close file twice in should_use_fallback error path
When fallback.efi is not present, the should_use_fallback error path attempts to close a file that has already been closed, resulting in a hang. This issue only affects certain systems. This is a regression from version 0.8 and was introduced by commit 4794822. Signed-off-by: Benjamin Antin <ben.antin@endlessm.com>
Diffstat (limited to 'shim.c')
-rw-r--r--shim.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/shim.c b/shim.c
index 88b88380..bd5990e6 100644
--- a/shim.c
+++ b/shim.c
@@ -1392,7 +1392,6 @@ should_use_fallback(EFI_HANDLE image_handle)
* Print(L"Could not open \"\\EFI\\BOOT%s\": %d\n", FALLBACK,
* rc);
*/
- uefi_call_wrapper(vh->Close, 1, vh);
goto error;
}