mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-17 23:37:01 +00:00
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>
This commit is contained in:
parent
eb68b4ef31
commit
7069515e7f
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue