Revision: 14769
http://sourceforge.net/p/edk2/code/14769
Author: lzeng14
Date: 2013-10-14 09:39:25 +0000 (Mon, 14 Oct 2013)
Log Message:
-----------
MdePkg PeiServicesLib: Refine the code to avoid error report.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <[email protected]>
Modified Paths:
--------------
trunk/edk2/MdePkg/Library/PeiServicesLib/PeiServicesLib.c
Modified: trunk/edk2/MdePkg/Library/PeiServicesLib/PeiServicesLib.c
===================================================================
--- trunk/edk2/MdePkg/Library/PeiServicesLib/PeiServicesLib.c 2013-10-14
02:42:47 UTC (rev 14768)
+++ trunk/edk2/MdePkg/Library/PeiServicesLib/PeiServicesLib.c 2013-10-14
09:39:25 UTC (rev 14769)
@@ -624,12 +624,14 @@
// To install FvInfo Ppi.
//
FvInfoPpi = AllocateZeroPool (sizeof (EFI_PEI_FIRMWARE_VOLUME_INFO_PPI));
+ ASSERT (FvInfoPpi != NULL);
PpiGuid = &gEfiPeiFirmwareVolumeInfoPpiGuid;
} else {
//
// To install FvInfo2 Ppi.
//
FvInfoPpi = AllocateZeroPool (sizeof (EFI_PEI_FIRMWARE_VOLUME_INFO2_PPI));
+ ASSERT (FvInfoPpi != NULL);
((EFI_PEI_FIRMWARE_VOLUME_INFO2_PPI *) FvInfoPpi)->AuthenticationStatus =
AuthenticationStatus;
PpiGuid = &gEfiPeiFirmwareVolumeInfo2PpiGuid;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits