summaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2008-12-08 14:37:20 +0100
committerJoerg Roedel <joerg.roedel@amd.com>2008-12-08 14:58:46 +0100
commit8ad909c4c1b91bd35ba6a2af5e7ab3fc8d9fe283 (patch)
tree8fd795a4b1558466b8c2aed347d8550714049556 /arch/x86
parent24f811603e8ef4b9173f47fa263230168e237128 (diff)
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.c2
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);