efi_loader: pass handle of loaded image
[oweals/u-boot.git] / lib / efi_loader / efi_boottime.c
index 54e9c27db19311abde1ab3a6a5a1dbda9a55fd31..0fb2848ecf9a70b6b8f0eaff472106ca695f2526 100644 (file)
@@ -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);
 }