aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/amd_iommu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/amd_iommu.c')
-rw-r--r--arch/x86/kernel/amd_iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c
index e4866660463e..f405a61f61fc 100644
--- a/arch/x86/kernel/amd_iommu.c
+++ b/arch/x86/kernel/amd_iommu.c
@@ -1176,11 +1176,11 @@ static void *alloc_coherent(struct device *dev, size_t size,
1176 if (!get_device_resources(dev, &iommu, &domain, &devid)) 1176 if (!get_device_resources(dev, &iommu, &domain, &devid))
1177 flag &= ~(__GFP_DMA | __GFP_HIGHMEM | __GFP_DMA32); 1177 flag &= ~(__GFP_DMA | __GFP_HIGHMEM | __GFP_DMA32);
1178 1178
1179 flag |= __GFP_ZERO;
1179 virt_addr = (void *)__get_free_pages(flag, get_order(size)); 1180 virt_addr = (void *)__get_free_pages(flag, get_order(size));
1180 if (!virt_addr) 1181 if (!virt_addr)
1181 return 0; 1182 return 0;
1182 1183
1183 memset(virt_addr, 0, size);
1184 paddr = virt_to_phys(virt_addr); 1184 paddr = virt_to_phys(virt_addr);
1185 1185
1186 if (!iommu || !domain) { 1186 if (!iommu || !domain) {