From daa3f8472acd44ad90d217f6c25f986bb0f3249c Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Fri, 7 Jun 2019 07:43:24 +0200 Subject: [PATCH] efi_loader: RegisterProtocolNotify event signaling In a following patch efi_signal_event() will only queue an event if it is not signaled. Set the is_signaled status to false before signaling the event. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_boottime.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index 7d1d6e9213..c7e2ecbf00 100644 --- a/lib/efi_loader/efi_boottime.c +++ b/lib/efi_loader/efi_boottime.c @@ -1068,6 +1068,7 @@ efi_status_t efi_add_protocol(const efi_handle_t handle, } notif->handle = handle; list_add_tail(¬if->link, &event->handles); + event->event->is_signaled = false; efi_signal_event(event->event, true); } } -- 2.39.5