summaryrefslogtreecommitdiff
path: root/lib/efi_loader/efi_gop.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2017-11-26 16:05:17 +0300
committerAlexander Graf <agraf@suse.de>2017-12-01 15:37:49 +0300
commit69fb6b1afcf37d3f68c6e0614658cfc023410e09 (patch)
treeaa381642cf9fb952ec8021c22bdd76f1b1f03318 /lib/efi_loader/efi_gop.c
parent72292aba4f0b4857f0951bd670d08d9d73b2d6b2 (diff)
downloadu-boot-69fb6b1afcf37d3f68c6e0614658cfc023410e09.tar.xz
efi_loader: manage protocols in a linked list
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/efi_loader/efi_gop.c')
-rw-r--r--lib/efi_loader/efi_gop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_gop.c b/lib/efi_loader/efi_gop.c
index 7b74d6ef33..498184d754 100644
--- a/lib/efi_loader/efi_gop.c
+++ b/lib/efi_loader/efi_gop.c
@@ -180,6 +180,7 @@ int efi_gop_register(void)
}
/* Hook up to the device list */
+ INIT_LIST_HEAD(&gopobj->parent.protocols);
list_add_tail(&gopobj->parent.link, &efi_obj_list);
/* Fill in object data */