]> git.proxmox.com Git - mirror_edk2.git/commit
The UEFI specification does not say anything when the pointers passed to
authorOlivier Martin <olivier.martin@arm.com>
Wed, 9 Jul 2014 05:19:24 +0000 (05:19 +0000)
committererictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 9 Jul 2014 05:19:24 +0000 (05:19 +0000)
commit720f84a9d3b53ee567aa90c2362f4c4912d271de
treea06e70bd79cd6c0a0a8ad8cfb9656dc68d76cc59
parente364478661e2a5e9195ce4a9f00761e154e48bfa
The UEFI specification does not say anything when the pointers passed to
WaitForEvent() are NULL.
Passing NULL pointer would cause a segmentation fault in the current code.
This change prevents to get segmentation faults in this case.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15643 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Core/Dxe/Event/Event.c