projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e33acde
)
iommu/amd: Fix wrong shift direction
author
Joerg Roedel
<joerg.roedel@amd.com>
Tue, 11 Oct 2011 15:41:32 +0000
(17:41 +0200)
committer
Joerg Roedel
<joerg.roedel@amd.com>
Tue, 11 Oct 2011 15:41:32 +0000
(17:41 +0200)
The shift direction was wrong because the function takes a
page number and i is the address is the loop.
Cc: stable@kernel.org
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/amd_iommu.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/amd_iommu.c
b/drivers/iommu/amd_iommu.c
index 0e4227f457af38c9e1c6fc6bf1e065b94e1e9c4f..cc79045bc5274c157bd90f746a947daebe8d5286 100644
(file)
--- a/
drivers/iommu/amd_iommu.c
+++ b/
drivers/iommu/amd_iommu.c
@@
-1283,7
+1283,7
@@
static int alloc_new_range(struct dma_ops_domain *dma_dom,
if (!pte || !IOMMU_PTE_PRESENT(*pte))
continue;
- dma_ops_reserve_addresses(dma_dom, i
<<
PAGE_SHIFT, 1);
+ dma_ops_reserve_addresses(dma_dom, i
>>
PAGE_SHIFT, 1);
}
update_domain(&dma_dom->domain);