mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
efi_loader: parameter check CreateEventEx()
CreateEvent() and CreateEventEx() should check that a notify function is provided for either of EVT_NOTIFY_SIGNAL or EVT_NOTIFY_WAIT. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
b4ee6daad7
commit
751e928d07
|
@ -618,7 +618,7 @@ efi_status_t efi_create_event(uint32_t type, efi_uintn_t notify_tpl,
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((type & (EVT_NOTIFY_WAIT | EVT_NOTIFY_SIGNAL)) &&
|
if ((type & (EVT_NOTIFY_WAIT | EVT_NOTIFY_SIGNAL)) &&
|
||||||
(is_valid_tpl(notify_tpl) != EFI_SUCCESS))
|
(!notify_function || is_valid_tpl(notify_tpl) != EFI_SUCCESS))
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
|
|
||||||
evt = calloc(1, sizeof(struct efi_event));
|
evt = calloc(1, sizeof(struct efi_event));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user