Message ID | 20190607062216.21525-3-xypron.glpk@gmx.de |
---|---|
State | Accepted, archived |
Commit | dfa306e44271aadc64cca4a070527ad7d64531fc |
Delegated to: | Heinrich Schuchardt |
Headers | show |
Series | efi_loader: correct event signaling | expand |
diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index c7e2ecbf00..74aa5f9b7c 100644 --- a/lib/efi_loader/efi_boottime.c +++ b/lib/efi_loader/efi_boottime.c @@ -221,6 +221,8 @@ efi_status_t is_valid_tpl(efi_uintn_t tpl) */ void efi_signal_event(struct efi_event *event, bool check_tpl) { + if (event->is_signaled) + return; if (event->group) { struct efi_event *evt;
If an event is already in the signaled state, SignalEvent should not queue the notification function but simply return EFI_SUCCESS. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> --- lib/efi_loader/efi_boottime.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.20.1