]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Library/PrePiMemoryAllocationLib/MemoryAllocationLib.c
EmbeddedPkg/PrePiMemoryAllocationLib: use correct size for pool hob
[mirror_edk2.git] / EmbeddedPkg / Library / PrePiMemoryAllocationLib / MemoryAllocationLib.c
index 7ce71c27cb8ccb8ce9c3c5257b22e3307587b24e..bae6682c72b6b9d160b26b2af4d76c1344925753 100644 (file)
@@ -180,11 +180,13 @@ AllocatePool (
   // Verify that there is sufficient memory to satisfy the allocation\r
   //\r
   if (AllocationSize > 0x10000) {\r
-    // Please call AllcoatePages for big allocations\r
+    // Please call AllocatePages for big allocations\r
     return 0;\r
   } else {\r
 \r
-    Hob = (EFI_HOB_MEMORY_POOL *)CreateHob (EFI_HOB_TYPE_MEMORY_POOL, (UINT16)(sizeof (EFI_HOB_TYPE_MEMORY_POOL) + AllocationSize));\r
+    Hob = (EFI_HOB_MEMORY_POOL *)CreateHob (EFI_HOB_TYPE_MEMORY_POOL,\r
+                                   (UINT16)(sizeof (EFI_HOB_MEMORY_POOL) +\r
+                                            AllocationSize));\r
     return (VOID *)(Hob + 1);\r
   }\r
 }\r