[PATCH 1/2] efi_loader: delete handle from events when a protocol is uninstalled

Ilias Apalodimas ilias.apalodimas at linaro.org
Thu Jun 1 14:59:16 CEST 2023


Heinrich

[...]

>
> diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c
> index d5065f296aee..450524ddca2f 100644
> --- a/lib/efi_loader/efi_boottime.c
> +++ b/lib/efi_loader/efi_boottime.c
> @@ -197,6 +197,35 @@ static bool efi_event_is_queued(struct efi_event *event)
>         return !!event->queue_link.next;
>  }
>
> +/**
> + * efi_handle_cleanup() - Clean the deleted handle from the various lists
> + * @handle: handle to remove
> + * @force:  force removal even if protocols are still installed on the handle
> + *
> + * Return: status code
> + */
> +static void efi_handle_cleanup(efi_handle_t handle, bool force)
> +{
> +       struct efi_register_notify_event *item, *next;
> +
> +       if (!list_empty(&handle->protocols) || force)

This is obviously wrong, I'll send a v2 once you are fine with the rest. Sorry!


[...]

/Ilias


More information about the U-Boot mailing list