提交 b57c3c80 编写于 作者: J Joerg Roedel

iommu/amd: Pass correct shift to iommu_area_alloc()

The page-offset of the aperture must be passed instead of 0.
Signed-off-by: NJoerg Roedel <jroedel@suse.de>
上级 84b3a0bc
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册