projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ad909c
)
AMD IOMMU: __unmap_single: check for bad_dma_address instead of 0
author
Joerg Roedel
<joerg.roedel@amd.com>
Mon, 8 Dec 2008 13:40:26 +0000
(14:40 +0100)
committer
Joerg Roedel
<joerg.roedel@amd.com>
Mon, 8 Dec 2008 13:58:55 +0000
(14:58 +0100)
Impact: minor fix
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
arch/x86/kernel/amd_iommu.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/amd_iommu.c
b/arch/x86/kernel/amd_iommu.c
index 3133a0ea09ff021196309d76dc7c6a6f0b1293b8..a7b6dec6fc3f4afc72f57651b1523156d415431b 100644
(file)
--- a/
arch/x86/kernel/amd_iommu.c
+++ b/
arch/x86/kernel/amd_iommu.c
@@
-983,7
+983,8
@@
static void __unmap_single(struct amd_iommu *iommu,
dma_addr_t i, start;
unsigned int pages;
- if ((dma_addr == 0) || (dma_addr + size > dma_dom->aperture_size))
+ if ((dma_addr == bad_dma_address) ||
+ (dma_addr + size > dma_dom->aperture_size))
return;
pages = iommu_num_pages(dma_addr, size, PAGE_SIZE);