mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-26 21:09:20 +07:00
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
@ -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…
Reference in New Issue
Block a user