diff options
author | Joerg Roedel <jroedel@suse.de> | 2015-12-21 15:40:38 +0100 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2015-12-28 17:18:50 +0100 |
commit | b57c3c802e51e83620b739759c8bba829e231b57 (patch) | |
tree | 712702253f244f7d70e245a1239b2db95282c2a3 /drivers/iommu | |
parent | 84b3a0bc88534d9e49d1642957f64db61a3aa5c4 (diff) | |
download | linux-b57c3c802e51e83620b739759c8bba829e231b57.tar.bz2 |
iommu/amd: Pass correct shift to iommu_area_alloc()
The page-offset of the aperture must be passed instead of 0.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/amd_iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index 69021ec79da9..1d1ef374a5a8 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c @@ -1551,7 +1551,7 @@ static unsigned long dma_ops_area_alloc(struct device *dev, spin_lock_irqsave(&dom->aperture[i]->bitmap_lock, flags); address = iommu_area_alloc(dom->aperture[i]->bitmap, - limit, next_bit, pages, 0, + limit, next_bit, pages, offset, boundary_size, align_mask); spin_unlock_irqrestore(&dom->aperture[i]->bitmap_lock, flags); if (address != -1) { |