summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2010-09-23 14:12:48 (GMT)
committerJoerg Roedel <joerg.roedel@amd.com>2010-09-23 14:26:20 (GMT)
commit04e0463e088b41060c08c255eb0d3278a504f094 (patch)
tree73a74dfb1575e9a7f255bcd6fcc84bcdb25f0e5f /include
parent4c894f47bb49284008073d351c0ddaac8860864e (diff)
downloadlinux-04e0463e088b41060c08c255eb0d3278a504f094.tar.xz
x86/amd-iommu: Fix rounding-bug in __unmap_single
In the __unmap_single function the dma_addr is rounded down to a page boundary before the dma pages are unmapped. The address is later also used to flush the TLB entries for that mapping. But without the offset into the dma page the amount of pages to flush might be miscalculated in the TLB flushing path. This patch fixes this bug by using the original address to flush the TLB. Cc: stable@kernel.org Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions