]> git.baikalelectronics.ru Git - uboot.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)
commitddff708bb3d5e40b6d920916385ebb81a4255b53
tree566da16c29bc65dabc09afeea06c9840bbb37a90
parent18f73c9ee5fdaaffc7ebeec922f54dd29a6b48aa
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