From: Heinrich Schuchardt Date: Fri, 28 Sep 2018 20:14:16 +0000 (+0200) Subject: efi_selftest: creating new handle in controller test X-Git-Tag: v2018.11-rc3~46^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b50f075286f953abb2f056ecda76ac034b3a1787;p=platform%2Fkernel%2Fu-boot.git 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 Signed-off-by: Alexander Graf --- diff --git a/lib/efi_selftest/efi_selftest_controllers.c b/lib/efi_selftest/efi_selftest_controllers.c index ceefa03..d08c377 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);