aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/pci-dma_32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/pci-dma_32.c b/arch/x86/kernel/pci-dma_32.c
index 9199bccb921..5ae3470113c 100644
--- a/arch/x86/kernel/pci-dma_32.c
+++ b/arch/x86/kernel/pci-dma_32.c
@@ -80,6 +80,8 @@ void dma_free_coherent(struct device *dev, size_t size,
80 WARN_ON(irqs_disabled()); /* for portability */ 80 WARN_ON(irqs_disabled()); /* for portability */
81 if (dma_release_coherent(dev, order, vaddr)) 81 if (dma_release_coherent(dev, order, vaddr))
82 return; 82 return;
83 if (dma_ops->unmap_single)
84 dma_ops->unmap_single(dev, dma_handle, size, 0);
83 free_pages((unsigned long)vaddr, order); 85 free_pages((unsigned long)vaddr, order);
84} 86}
85EXPORT_SYMBOL(dma_free_coherent); 87EXPORT_SYMBOL(dma_free_coherent);