summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2017-11-26 16:05:22 +0300
committerAlexander Graf <agraf@suse.de>2017-12-01 15:40:07 +0300
commitea54ad59286efe7e600f3e189036fa96989eace4 (patch)
tree93a77bf4fffda1c30f16554bc685127b2861b894 /lib
parent45055aac9dad8d08f8691d7d5b116c23ad07a50d (diff)
downloadu-boot-ea54ad59286efe7e600f3e189036fa96989eace4.tar.xz
efi_loader: pass handle of loaded image
The handle of a loaded image is the value of the handle member of the loaded image info object and not the address of the loaded image info. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi_loader/efi_boottime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c
index 54e9c27db1..0fb2848ecf 100644
--- a/lib/efi_loader/efi_boottime.c
+++ b/lib/efi_loader/efi_boottime.c
@@ -1317,7 +1317,7 @@ static efi_status_t EFIAPI efi_load_image(bool boot_policy,
info->system_table = &systab;
info->parent_handle = parent_image;
- *image_handle = info;
+ *image_handle = obj->handle;
return EFI_EXIT(EFI_SUCCESS);
}