]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/PeiMain: PeiAllocatePool: output NULL if HOB creation fails
authorBret Barkelew <Bret.Barkelew@microsoft.com>
Wed, 12 Jun 2019 03:56:29 +0000 (11:56 +0800)
committerHao A Wu <hao.a.wu@intel.com>
Mon, 24 Jun 2019 02:18:04 +0000 (10:18 +0800)
commit8797683f96a1909d74488e19d1bae96228aa3f66
tree32e6a374ffc698465f41140e50542e4814aba682
parentbe5903ad1e244cbb0930161fb361ed0b699c4cb8
MdeModulePkg/PeiMain: PeiAllocatePool: output NULL if HOB creation fails

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1901

The original logic is ASSERT if fail to create HOB. But
that doesn't make sense for release version. So it is required
to set the Buffer to null to indicate the failure.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Michael Turner <Michael.Turner@microsoft.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Signed-off-by: Zhichao Gao <zhichao.gao@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Acked-by: Hao A Wu <hao.a.wu@intel.com>
MdeModulePkg/Core/Pei/Memory/MemoryServices.c