aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/pci-dma_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/pci-dma_64.c')
-rw-r--r--arch/x86/kernel/pci-dma_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/pci-dma_64.c b/arch/x86/kernel/pci-dma_64.c
index e4fffaabe53b..f97a08d0a8f9 100644
--- a/arch/x86/kernel/pci-dma_64.c
+++ b/arch/x86/kernel/pci-dma_64.c
@@ -141,7 +141,7 @@ dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle,
141 } 141 }
142 142
143 if (dma_ops->map_simple) { 143 if (dma_ops->map_simple) {
144 *dma_handle = dma_ops->map_simple(dev, memory, 144 *dma_handle = dma_ops->map_simple(dev, virt_to_phys(memory),
145 size, 145 size,
146 PCI_DMA_BIDIRECTIONAL); 146 PCI_DMA_BIDIRECTIONAL);
147 if (*dma_handle != bad_dma_address) 147 if (*dma_handle != bad_dma_address)