Files
u-boot/lib
Ilias Apalodimas 747d16d93c efi_loader: check the status of disconnected drivers
efi_uninstall_protocol() calls efi_disconnect_all_drivers() but never
checks the return value.  Instead it tries to identify protocols that
are still open after closing the ones that were opened with
EFI_OPEN_PROTOCOL_BY_HANDLE_PROTOCOL, EFI_OPEN_PROTOCOL_GET_PROTOCOL
and EFI_OPEN_PROTOCOL_TEST_PROTOCOL.

Instead of doing that,  check the return value early and exit if
disconnecting the drivers failed.  Also reconnect all the drivers of
a handle if protocols are still found on the handle after disconnecting
controllers and closing the remaining protocols.

While at it fix a memory leak and properly free the opened protocol
information when closing a protocol.

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2023-07-15 11:20:41 +02:00
..
2023-06-12 14:55:33 -04:00
2022-01-18 08:31:02 -05:00
2022-07-11 14:58:57 -04:00
2023-02-11 12:22:34 -05:00
2022-07-26 02:30:56 -06:00
2020-05-18 21:19:18 -04:00
2022-01-19 18:11:34 +01:00
2023-01-04 13:17:42 +01:00
2019-12-02 18:23:07 -05:00
2022-08-12 08:14:23 -04:00
2020-10-30 10:56:11 -04:00
2023-01-20 12:27:24 -05:00
2021-09-04 12:26:01 -04:00
2023-05-11 10:25:29 +08:00
2022-03-15 16:19:29 -04:00
2023-05-11 10:25:29 +08:00
2019-12-06 16:44:20 -05:00
2020-05-18 21:19:18 -04:00
2023-01-16 18:01:10 +08:00
2021-07-14 16:57:35 -04:00
2020-05-18 21:19:18 -04:00
2020-08-24 14:11:31 -04:00
2022-10-27 09:10:08 -04:00
2023-02-11 12:22:34 -05:00
2021-07-15 18:42:05 -04:00
2022-01-19 18:11:34 +01:00
2023-02-11 12:22:35 -05:00