summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-09-28 22:14:16 +0200
committerAlexander Graf <agraf@suse.de>2018-10-16 22:56:18 +0200
commitb50f075286f953abb2f056ecda76ac034b3a1787 (patch)
treee0db24863fa78acae512ef3e80109b36ae60f68b
parent4f37fa470f440aaed392b640557a88113167ea86 (diff)
downloadu-boot-b50f075286f953abb2f056ecda76ac034b3a1787.tar.gz
u-boot-b50f075286f953abb2f056ecda76ac034b3a1787.tar.bz2
u-boot-b50f075286f953abb2f056ecda76ac034b3a1787.zip
efi_selftest: creating new handle in controller test
When the last protocol interface is uninstalled the handle is deleted but this does not set the value of the handle to NULL. To create a new handle with OpenProtocolInterface the value of the handle must be NULL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
-rw-r--r--lib/efi_selftest/efi_selftest_controllers.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/efi_selftest/efi_selftest_controllers.c b/lib/efi_selftest/efi_selftest_controllers.c
index ceefa03444..d08c377c72 100644
--- a/lib/efi_selftest/efi_selftest_controllers.c
+++ b/lib/efi_selftest/efi_selftest_controllers.c
@@ -134,6 +134,8 @@ static efi_status_t EFIAPI start(
/* Create child controllers */
for (i = 0; i < NUMBER_OF_CHILD_CONTROLLERS; ++i) {
+ /* Creating a new handle for the child controller */
+ handle_child_controller[i] = 0;
ret = boottime->install_protocol_interface(
&handle_child_controller[i], &guid_child_controller,
EFI_NATIVE_INTERFACE, NULL);