]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg: Return invalid param in LocateProtocol for Protocol==NULL
authorStar Zeng <star.zeng@intel.com>
Tue, 20 Jun 2017 10:25:29 +0000 (18:25 +0800)
committerStar Zeng <star.zeng@intel.com>
Wed, 21 Jun 2017 13:37:34 +0000 (21:37 +0800)
commit415fc5e5a4c98f84fd49277872fc49d37aa7e5a1
tree2865c4a0bda4f04ca0d1f441c049416b520f111b
parentd65f7eeb4ca24f9ce9191f6fc6bd6c5d101c5731
MdeModulePkg: Return invalid param in LocateProtocol for Protocol==NULL

Return EFI_INVALID_PARAMETER in LocateProtocol for Protocol==NULL to
follow UEFI 2.7 spec

PiSmmCore is also updated as the EFI_SMM_SYSTEM_TABLE2.SmmLocateProtocol
is reusing the definition of EFI_LOCATE_PROTOCOL.

Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdeModulePkg/Core/Dxe/Hand/Locate.c
MdeModulePkg/Core/PiSmmCore/Locate.c