diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2008-12-08 14:37:20 +0100 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2008-12-08 14:58:46 +0100 |
commit | 8ad909c4c1b91bd35ba6a2af5e7ab3fc8d9fe283 (patch) | |
tree | 8fd795a4b1558466b8c2aed347d8550714049556 /arch/x86 | |
parent | AMD IOMMU: fix typo in comment (diff) | |
download | linux-8ad909c4c1b91bd35ba6a2af5e7ab3fc8d9fe283.tar.xz linux-8ad909c4c1b91bd35ba6a2af5e7ab3fc8d9fe283.zip |
AMD IOMMU: fix WARN_ON in dma_ops unmap path
Impact: minor fix
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/amd_iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c index 2fde073b6be6..3133a0ea09ff 100644 --- a/arch/x86/kernel/amd_iommu.c +++ b/arch/x86/kernel/amd_iommu.c @@ -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); |