Commit 8ad909c4 authored by Joerg Roedel's avatar Joerg Roedel

AMD IOMMU: fix WARN_ON in dma_ops unmap path

Impact: minor fix
Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment