diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2018-02-18 11:32:02 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2018-04-04 11:00:06 +0200 |
commit | 7069515e7f82fea281160de9c8af1bb857918a96 (patch) | |
tree | e6aa0fc3bdc989e3234b70a19d137716521867d3 /lib/efi_loader | |
parent | eb68b4ef31cd7d0fe08becda7ac1e56b45f9054a (diff) | |
download | u-boot-7069515e7f82fea281160de9c8af1bb857918a96.zip u-boot-7069515e7f82fea281160de9c8af1bb857918a96.tar.gz u-boot-7069515e7f82fea281160de9c8af1bb857918a96.tar.bz2 |
efi_loader: clear signaled state in CheckEvent
CheckEvent must clear the signaled state.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib/efi_loader')
-rw-r--r-- | lib/efi_loader/efi_boottime.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index 9ca2e81..8137ef5 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); |