]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: delete handle from events when a protocol is uninstalled
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Thu, 24 Aug 2023 14:21:09 +0000 (17:21 +0300)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 27 Aug 2023 06:21:08 +0000 (08:21 +0200)
commitcc889bd0754e50a3cd50e8ed3094388480fbec86
tree566da16c29bc65dabc09afeea06c9840bbb37a90
parent143c9a7e9d686d7b2e2a7a1c26cf0c4d82660cc6
efi_loader: delete handle from events when a protocol is uninstalled

When a notification event is registered for a protocol the handle of the
protocol is added in our event notification list.  When all the protocols
of the handle are uninstalled we delete the handle but we do not remove
it from the event notification list.

Clean up the protocol removal functions and add a wrapper which
- Removes the to-be deleted handle from any lists it participates
- Remove the handle if no more protocols are present

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_boottime.c