From 9c0a41378ad3cfd7115530d0e8f4e94019ae24a9 Mon Sep 17 00:00:00 2001 From: Benjamin Antin Date: Mon, 18 Jul 2016 12:28:12 -0700 Subject: 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 --- shim.c | 1 - 1 file changed, 1 deletion(-) diff --git a/shim.c b/shim.c index f5bed2dc..7d36b418 100644 --- a/shim.c +++ b/shim.c @@ -1371,7 +1371,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; } -- cgit v1.2.3