projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24f8116
)
AMD IOMMU: fix WARN_ON in dma_ops unmap path
author
Joerg Roedel
<joerg.roedel@amd.com>
Mon, 8 Dec 2008 13:37:20 +0000
(14:37 +0100)
committer
Joerg Roedel
<joerg.roedel@amd.com>
Mon, 8 Dec 2008 13:58:46 +0000
(14:58 +0100)
Impact: minor fix
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
arch/x86/kernel/amd_iommu.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/amd_iommu.c
b/arch/x86/kernel/amd_iommu.c
index
2fde073
..
3133a0e
100644
(file)
--- 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);