]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/Mem/Pool.c
MdeModulePkg: EfiUnacceptedMemoryType is not allowed in AllocatePool
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / Mem / Pool.c
index 7aaf501600cf2821be2dc524b2dd40a48fe66678..b20cbfdedbab88fa87e45ba2d9a017288fd5b2da 100644 (file)
@@ -213,7 +213,7 @@ CoreInternalAllocatePool (
   // If it's not a valid type, fail it\r
   //\r
   if (((PoolType >= EfiMaxMemoryType) && (PoolType < MEMORY_TYPE_OEM_RESERVED_MIN)) ||\r
-      (PoolType == EfiConventionalMemory) || (PoolType == EfiPersistentMemory))\r
+      (PoolType == EfiConventionalMemory) || (PoolType == EfiPersistentMemory) || (PoolType == EfiUnacceptedMemoryType))\r
   {\r
     return EFI_INVALID_PARAMETER;\r
   }\r