efi_loader: run CreateEvent() notify function based on flags
authorJonathan Gray <jsg@jsg.id.au>
Sun, 12 Mar 2017 08:26:06 +0000 (19:26 +1100)
committerAlexander Graf <agraf@suse.de>
Mon, 3 Jul 2017 11:48:51 +0000 (13:48 +0200)
commit37a980b3fa0b0ad26b16b7b9b9dbb25b0075a06b
tree738a96e8b984bb7785b1ebbb5aaf36c02f1820e8
parent85a6e9b3c9d16ec062a6da3129448f39aad94fc9
efi_loader: run CreateEvent() notify function based on flags

The UEFI specification states that the tpl, function and context
arguments are to be ignored if neither EVT_NOTIFY_WAIT or
EVT_NOTIFY_SIGNAL are specified.  This matches observed behaviour with
an AMI EDK2 based UEFI implementation.

Skip calling the notify function if neither flag is present.

Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Acked-By: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
include/efi_api.h
lib/efi_loader/efi_boottime.c