diff options
author | Joerg Roedel <jroedel@suse.de> | 2015-04-01 14:58:46 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2015-04-02 13:31:07 +0200 |
commit | 5fc872c7323534e8f7dc21bab635e7a9b9659e07 (patch) | |
tree | fb90af7d22f935b3b419b554115cee7dd370f904 | |
parent | 7139a2e929b9e3ca8d5c217cb8aec560be1faf00 (diff) |
iommu/amd: Don't allocate with __GFP_ZERO in alloc_coherent
Don't explicitly add __GFP_ZERO to the allocator flags.
Leave this up to the caller.
Tested-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
-rw-r--r-- | drivers/iommu/amd_iommu.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index 994cc7dbb833..c2e6f13d148f 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c @@ -2931,7 +2931,6 @@ static void *alloc_coherent(struct device *dev, size_t size, dma_mask = dev->coherent_dma_mask; flag &= ~(__GFP_DMA | __GFP_HIGHMEM | __GFP_DMA32); - flag |= __GFP_ZERO; virt_addr = (void *)__get_free_pages(flag, get_order(size)); if (!virt_addr) |