summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Library/DxeCoreMemoryAllocationLib
diff options
context:
space:
mode:
authorjji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-05 09:24:28 +0000
committerjji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-05 09:24:28 +0000
commit6a30c6d0a69a461339456162a7fe581428cfa819 (patch)
treecee62270b08609268610f66bbfbe4586412e7b6c /MdeModulePkg/Library/DxeCoreMemoryAllocationLib
parent5899f27e062001882274589496117eabda9bea94 (diff)
downloadedk2-6a30c6d0a69a461339456162a7fe581428cfa819.tar.gz
edk2-6a30c6d0a69a461339456162a7fe581428cfa819.tar.bz2
edk2-6a30c6d0a69a461339456162a7fe581428cfa819.zip
Comments have been checked with spec
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6872 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Library/DxeCoreMemoryAllocationLib')
-rw-r--r--MdeModulePkg/Library/DxeCoreMemoryAllocationLib/MemoryAllocationLib.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/MdeModulePkg/Library/DxeCoreMemoryAllocationLib/MemoryAllocationLib.c b/MdeModulePkg/Library/DxeCoreMemoryAllocationLib/MemoryAllocationLib.c
index 10a011e446..7f15ec0be9 100644
--- a/MdeModulePkg/Library/DxeCoreMemoryAllocationLib/MemoryAllocationLib.c
+++ b/MdeModulePkg/Library/DxeCoreMemoryAllocationLib/MemoryAllocationLib.c
@@ -702,7 +702,6 @@ InternalReallocatePool (
If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
enough memory remaining to satisfy the request, then NULL is returned.
- If OldBuffer is NULL, then ASSERT().
If NewSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
If OldSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
@@ -735,7 +734,6 @@ ReallocatePool (
If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
enough memory remaining to satisfy the request, then NULL is returned.
- If OldBuffer is NULL, then ASSERT().
If NewSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
If OldSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
@@ -767,8 +765,7 @@ ReallocateRuntimePool (
OldBuffer is freed. A pointer to the newly allocated buffer is returned.
If NewSize is 0, then a valid buffer of 0 size is returned. If there is not
enough memory remaining to satisfy the request, then NULL is returned.
-
- If OldBuffer is NULL, then ASSERT().
+
If NewSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().
If OldSize is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().