AMD IOMMU: fix WARN_ON in dma_ops unmap path
Impact: minor fix Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
This commit is contained in:
parent
24f811603e
commit
8ad909c4c1
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue