colibri_imx6: fix video stdout in default environment
[oweals/u-boot.git] / lib / efi_selftest / efi_selftest_controllers.c
index ceefa03444fc18787343e810d825981d42bac84f..38720bb63d398d5c2d62a57917e7c86654b916d5 100644 (file)
@@ -33,7 +33,7 @@ static efi_handle_t handle_driver;
  * Count child controllers
  *
  * @handle     handle on which child controllers are installed
- * @protocol   protocol for which the child controlles where installed
+ * @protocol   protocol for which the child controllers were installed
  * @count      number of child controllers
  * @return     status code
  */
@@ -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);