mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-28 22:21:49 +01:00
efi_loader: SignalEvent for event in signaled state
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>
This commit is contained in:
parent
daa3f8472a
commit
dfa306e442
@ -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)
|
void efi_signal_event(struct efi_event *event, bool check_tpl)
|
||||||
{
|
{
|
||||||
|
if (event->is_signaled)
|
||||||
|
return;
|
||||||
if (event->group) {
|
if (event->group) {
|
||||||
struct efi_event *evt;
|
struct efi_event *evt;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user