From 7dd5d44753969167a6059405635bdb8b9d961fa1 Mon Sep 17 00:00:00 2001
From: Rob Clark <robdclark@gmail.com>
Date: Wed, 20 Sep 2017 18:23:42 -0400
Subject: [PATCH] efi_loader: fix efi_exit

efi_exit() already restores gd, so we shouldn't EFI_EXIT() on the
otherside of the longjmp().

Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
---
 cmd/bootefi.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/cmd/bootefi.c b/cmd/bootefi.c
index e0a657323f..b7087e3da8 100644
--- a/cmd/bootefi.c
+++ b/cmd/bootefi.c
@@ -190,7 +190,6 @@ static unsigned long do_bootefi_exec(void *efi, void *fdt,
 
 	if (setjmp(&loaded_image_info.exit_jmp)) {
 		ret = loaded_image_info.exit_status;
-		EFI_EXIT(ret);
 		goto exit;
 	}
 
-- 
2.39.5