efi_loader: RegisterProtocolNotify event signaling
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 7 Jun 2019 05:43:24 +0000 (07:43 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 10 Jun 2019 21:06:19 +0000 (23:06 +0200)
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 <xypron.glpk@gmx.de>
lib/efi_loader/efi_boottime.c

index 7d1d6e92138ed297251104b5d2f91cdd888875ab..c7e2ecbf00f60722c9ead08c3a4aacefb3fccce7 100644 (file)
@@ -1068,6 +1068,7 @@ efi_status_t efi_add_protocol(const efi_handle_t handle,
                        }
                        notif->handle = handle;
                        list_add_tail(&notif->link, &event->handles);
+                       event->event->is_signaled = false;
                        efi_signal_event(event->event, true);
                }
        }