From: Heinrich Schuchardt Date: Sun, 18 Feb 2018 10:32:02 +0000 (+0100) Subject: efi_loader: clear signaled state in CheckEvent X-Git-Tag: v2018.05-rc2~45^2~41 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7069515e7f82fea281160de9c8af1bb857918a96;p=u-boot efi_loader: clear signaled state in CheckEvent CheckEvent must clear the signaled state. Signed-off-by: Heinrich Schuchardt Signed-off-by: Alexander Graf --- diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index 9ca2e8161e..8137ef521e 100644 --- a/lib/efi_loader/efi_boottime.c +++ b/lib/efi_loader/efi_boottime.c @@ -818,7 +818,8 @@ static efi_status_t EFIAPI efi_close_event(struct efi_event *event) * See the Unified Extensible Firmware Interface (UEFI) specification * for details. * - * If an event is not signaled yet the notification function is queued. + * If an event is not signaled yet, the notification function is queued. + * The signaled state is cleared. * * @event event to check * @return status code @@ -836,8 +837,10 @@ static efi_status_t EFIAPI efi_check_event(struct efi_event *event) break; if (!event->is_signaled) efi_signal_event(event, true); - if (event->is_signaled) + if (event->is_signaled) { + event->is_signaled = false; return EFI_EXIT(EFI_SUCCESS); + } return EFI_EXIT(EFI_NOT_READY); } return EFI_EXIT(EFI_INVALID_PARAMETER);