From 7052e75307553edc8f04eb529b0d37844fbcc30b 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(-) (limited to 'shim.c') 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; } -- cgit v1.2.3