]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Core/Dxe/Mem/MemoryProfileRecord.c
MdeModulePkg MemoryProfile: Add ASSERTs to make sure pointers are not NULL
authorHao Wu <hao.a.wu@intel.com>
Mon, 4 Jul 2016 04:38:28 +0000 (12:38 +0800)
committerHao Wu <hao.a.wu@intel.com>
Tue, 5 Jul 2016 05:31:41 +0000 (13:31 +0800)
commit9cda0af7ecfcfc5446da13e63b1930a0d83c0f3f
tree4f4ba7deb5335c5e10a9ae81ffc8ea1de36c338c
parent6f9760d88b11d3a848c2522286f3a5b5e5214fbd
MdeModulePkg MemoryProfile: Add ASSERTs to make sure pointers are not NULL

Code logic ensures that both pointers 'DriverInfoData' and 'AllocInfoData'
will not be NULL when they are used.

Add ASSERTs as warning for cases that will not happen.

Cc: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Core/Dxe/Mem/MemoryProfileRecord.c
MdeModulePkg/Core/PiSmmCore/SmramProfileRecord.c