diff options
-rw-r--r-- | arch/x86/kernel/pci-nommu_64.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/pci-nommu_64.c b/arch/x86/kernel/pci-nommu_64.c index a4e8ccfae4cb..1da9cf9be3aa 100644 --- a/arch/x86/kernel/pci-nommu_64.c +++ b/arch/x86/kernel/pci-nommu_64.c | |||
@@ -32,6 +32,7 @@ nommu_map_single(struct device *hwdev, phys_addr_t paddr, size_t size, | |||
32 | dma_addr_t bus = paddr; | 32 | dma_addr_t bus = paddr; |
33 | if (!check_addr("map_single", hwdev, bus, size)) | 33 | if (!check_addr("map_single", hwdev, bus, size)) |
34 | return bad_dma_address; | 34 | return bad_dma_address; |
35 | flush_write_buffers(); | ||
35 | return bus; | 36 | return bus; |
36 | } | 37 | } |
37 | 38 | ||
@@ -64,6 +65,7 @@ static int nommu_map_sg(struct device *hwdev, struct scatterlist *sg, | |||
64 | return 0; | 65 | return 0; |
65 | s->dma_length = s->length; | 66 | s->dma_length = s->length; |
66 | } | 67 | } |
68 | flush_write_buffers(); | ||
67 | return nents; | 69 | return nents; |
68 | } | 70 | } |
69 | 71 | ||