]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
efi_loader: set parent handle in efi_load_image
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 18 Oct 2017 16:13:20 +0000 (18:13 +0200)
committerAlexander Graf <agraf@suse.de>
Fri, 1 Dec 2017 12:22:55 +0000 (13:22 +0100)
The parent_handle of the loaded image must be set.
Set the system table.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_boottime.c

index c77da8a9c1bd9a1adc253a8f5efc46541f40ea81..b1050e5fb46299cab6d081ad2a61d2229ca07a0d 100644 (file)
@@ -1282,6 +1282,8 @@ static efi_status_t EFIAPI efi_load_image(bool boot_policy,
                return EFI_EXIT(EFI_UNSUPPORTED);
        }
 
+       info->system_table = &systab;
+       info->parent_handle = parent_image;
        *image_handle = info;
 
        return EFI_EXIT(EFI_SUCCESS);