]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/UhciDxe/Uhci.c
For the data region which will be touched by Pci Bus Master, we should allocate memor...
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / UhciDxe / Uhci.c
index c57b0c80cada19efeab51c8e36037739ce7a944d..1ed79023a36aff85a9ad904739bdda372fd9f134 100644 (file)
@@ -1001,7 +1001,7 @@ Uhci2AsyncInterruptTransfer (
   //\r
   // Allocate and map source data buffer for bus master access.\r
   //\r
-  DataPtr = AllocatePool (DataLength);\r
+  DataPtr     = UsbHcAllocateMem (Uhc->MemPool, DataLength);\r
 \r
   if (DataPtr == NULL) {\r
     return EFI_OUT_OF_RESOURCES;\r