diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2008-12-08 08:37:20 -0500 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2008-12-08 08:58:46 -0500 |
commit | 8ad909c4c1b91bd35ba6a2af5e7ab3fc8d9fe283 (patch) | |
tree | 8fd795a4b1558466b8c2aed347d8550714049556 /arch/x86/kernel/amd_iommu.c | |
parent | 24f811603e8ef4b9173f47fa263230168e237128 (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/kernel/amd_iommu.c')
-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, | |||
910 | if (address >= dom->aperture_size) | 910 | if (address >= dom->aperture_size) |
911 | return; | 911 | return; |
912 | 912 | ||
913 | WARN_ON(address & 0xfffULL || address > dom->aperture_size); | 913 | WARN_ON(address & ~PAGE_MASK || address >= dom->aperture_size); |
914 | 914 | ||
915 | pte = dom->pte_pages[IOMMU_PTE_L1_INDEX(address)]; | 915 | pte = dom->pte_pages[IOMMU_PTE_L1_INDEX(address)]; |
916 | pte += IOMMU_PTE_L0_INDEX(address); | 916 | pte += IOMMU_PTE_L0_INDEX(address); |