summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/CapsulePei
diff options
context:
space:
mode:
authorli-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-13 06:16:51 +0000
committerli-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-13 06:16:51 +0000
commitf63085f50c1e8c086d6c4007a9ec68fa66267411 (patch)
treee82bccbd49f5946998001ef9f2ccce213f3d713d /MdeModulePkg/Universal/CapsulePei
parentc56b65665de7a665e29107ee9c377c1e2e84d343 (diff)
downloadedk2-platforms-f63085f50c1e8c086d6c4007a9ec68fa66267411.tar.xz
Add NULl check for pointer.
Signed-off-by: li-elvin Reviewed-by: lgao4, lzeng14 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12333 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/CapsulePei')
-rw-r--r--MdeModulePkg/Universal/CapsulePei/Common/CapsuleCoalesce.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/CapsulePei/Common/CapsuleCoalesce.c b/MdeModulePkg/Universal/CapsulePei/Common/CapsuleCoalesce.c
index 76c719a54e..a32b6d6645 100644
--- a/MdeModulePkg/Universal/CapsulePei/Common/CapsuleCoalesce.c
+++ b/MdeModulePkg/Universal/CapsulePei/Common/CapsuleCoalesce.c
@@ -541,6 +541,8 @@ GetCapsuleInfo (
UINTN Count;
UINTN Size;
+ ASSERT (Desc != NULL);
+
Count = 0;
Size = 0;