efi_loader: fix DisconnectController() for sole child
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 28 Oct 2020 17:45:47 +0000 (18:45 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 30 Oct 2020 13:20:26 +0000 (14:20 +0100)
commit314bed6c854e41b2edd5cefb7009e3b6040abd28
treec94075c366956778180328153334c585a0b288d2
parentcdeb7b8f984e6d9bcdc5a6fdda6107af156d47bf
efi_loader: fix DisconnectController() for sole child

If ChildHandle indicates the sole child of the driver, disconnect the
driver.

This fixes the test results for UEFI SCT 2.6 A
sub-tests 5.1.3.12.43, 5.1.3.12.44, 5.1.3.12.45.

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