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
This commit is contained in:
@@ -541,6 +541,8 @@ GetCapsuleInfo (
|
||||
UINTN Count;
|
||||
UINTN Size;
|
||||
|
||||
ASSERT (Desc != NULL);
|
||||
|
||||
Count = 0;
|
||||
Size = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user