edk2/MdeModulePkg/Core/Pei
Khalid Ali 300dada916 MdeModulePkg/Core: Make PPI services spec complaint
The documentation of InstallPpi() and NotifyPpi() in both the spec and
function comment indicate to return EFI_OUT_OF_RESOURCES if memory
allocation fails.

However, the implementation of those two services assert if memory
allocation fails. This is a mismatch between what the function expected to
return and what actually returns.

Fix this by returning EFI_OUT_OF_RESOURCES if memory allocation fails,
so the code matches the documentation and comply with the spec. It is
expected service consumers(callers of these functions) to handle
failures appriciately.

Signed-off-by: Khalid Ali <khaliidcaliy@gmail.com>
2026-01-30 02:18:50 +00:00
..
BootMode MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
CpuIo MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Dependency MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Dispatcher MdeModulePkg: Fix missing NULL tests. 2025-11-22 18:58:47 +00:00
FwVol MdeModulePkg: Fix comparison with wider widths. 2025-11-22 18:58:47 +00:00
Hob MdeModulePkg: Fix missing NULL tests. 2025-11-22 18:58:47 +00:00
Image MdeModulePkg: Remove ambiguous negation of narrower type 2025-12-03 11:50:28 +01:00
Memory MdeModulePkg: Don't Allocate Page 0 2025-07-08 03:45:09 +00:00
PciCfg2 MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PeiMain MdeModulePkg: PeiMain: Introduce implementation of delayed dispatch 2024-10-17 08:51:15 +00:00
Ppi MdeModulePkg/Core: Make PPI services spec complaint 2026-01-30 02:18:50 +00:00
Reset MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Security MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
StatusCode MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PeiCore.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
PeiCoreExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
PeiMain.h MdeModulePkg PeiMain: Remove return for PeiCoreBuildHobHandoffInfoTable() 2025-01-26 18:35:08 +00:00
PeiMain.inf MdeModulePkg: Add PcdDelayedDispatchMaxEntries 2025-09-23 09:02:04 +08:00