aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/pci-nommu_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/pci-nommu_64.c')
-rw-r--r--arch/x86/kernel/pci-nommu_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/pci-nommu_64.c b/arch/x86/kernel/pci-nommu_64.c
index 1da9cf9be3aa..c6901e751770 100644
--- a/arch/x86/kernel/pci-nommu_64.c
+++ b/arch/x86/kernel/pci-nommu_64.c
@@ -60,7 +60,7 @@ static int nommu_map_sg(struct device *hwdev, struct scatterlist *sg,
60 60
61 for_each_sg(sg, s, nents, i) { 61 for_each_sg(sg, s, nents, i) {
62 BUG_ON(!sg_page(s)); 62 BUG_ON(!sg_page(s));
63 s->dma_address = virt_to_bus(sg_virt(s)); 63 s->dma_address = sg_phys(s);
64 if (!check_addr("map_sg", hwdev, s->dma_address, s->length)) 64 if (!check_addr("map_sg", hwdev, s->dma_address, s->length))
65 return 0; 65 return 0;
66 s->dma_length = s->length; 66 s->dma_length = s->length;