]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: fix a parameter check at CreateEvent()
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Fri, 10 Aug 2018 06:36:32 +0000 (15:36 +0900)
committerAlexander Graf <agraf@suse.de>
Mon, 20 Aug 2018 12:39:35 +0000 (14:39 +0200)
commit90f65bf542d46ca1e336ff869446fa27c11127b2
treeaa387d69ec85689c5afa21b652ee99ac194930e5
parentfc4316511aeca0a8fbc1c278f7ef1d9658f8efba
efi_loader: fix a parameter check at CreateEvent()

The commit c0dc781c90f7 ("efi_loader: check parameters of CreateEvent")
enforces a strict parameter check at CreateEvent(). On the other hand,
UEFI specification version 2.7, section 7.1, says:

    The EVT_NOTIFY_WAIT and EVT_NOTIFY_SIGNAL flags are exclusive. If
    neither flag is specified, the caller does not require any notification
    concerning the event and the NotifyTpl, NotifyFunction, and
    NotifyContext parameters are ignored.

So the check should be mitigated so as to comply with the specification.
Without this patch, EDK2's Shell.efi won't be started.

Fixes: c0dc781c90f7 ("efi_loader: check parameters of CreateEvent")
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_boottime.c