提交 8ad909c4 编写于 作者: J Joerg Roedel

AMD IOMMU: fix WARN_ON in dma_ops unmap path

Impact: minor fix
Signed-off-by: NJoerg Roedel <joerg.roedel@amd.com>
上级 24f81160
......@@ -910,7 +910,7 @@ static void dma_ops_domain_unmap(struct amd_iommu *iommu,
if (address >= dom->aperture_size)
return;
WARN_ON(address & 0xfffULL || address > dom->aperture_size);
WARN_ON(address & ~PAGE_MASK || address >= dom->aperture_size);
pte = dom->pte_pages[IOMMU_PTE_L1_INDEX(address)];
pte += IOMMU_PTE_L0_INDEX(address);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册