aboutsummaryrefslogtreecommitdiff
path: root/src/interface/efi/efi_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface/efi/efi_pci.c')
-rw-r--r--src/interface/efi/efi_pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/interface/efi/efi_pci.c b/src/interface/efi/efi_pci.c
index 4adee0f..ef02c9c 100644
--- a/src/interface/efi/efi_pci.c
+++ b/src/interface/efi/efi_pci.c
@@ -523,7 +523,8 @@ static void * efipci_dma_alloc ( struct dma_device *dma,
/* Map buffer */
if ( ( rc = efipci_dma_map ( dma, map, virt_to_phys ( addr ),
- len, DMA_BI ) ) != 0 )
+ ( pages * EFI_PAGE_SIZE ),
+ DMA_BI ) ) != 0 )
goto err_map;
/* Increment allocation count (for debugging) */