diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-04-19 13:19:56 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-19 13:19:56 -0400 |
commit | 2be621498d461b63ca6124f86e3b9582e1a8e722 (patch) | |
tree | 5b2e3af9ca287c7742f59f909cbce0e7bca3f333 /arch/x86/kernel/pci-dma_64.c | |
parent | 4d92fbf231fe23ec07d18820a141c573a7f5017a (diff) |
x86: dma-ops on highmem fix
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/pci-dma_64.c')
-rw-r--r-- | arch/x86/kernel/pci-dma_64.c | 2 |
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) |