diff options
author | Robin Murphy <robin.murphy@arm.com> | 2016-03-10 19:28:12 (GMT) |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2016-04-05 13:14:05 (GMT) |
commit | 07b48ac4bbe527e68cfc555f2b2b206908437141 (patch) | |
tree | bfae71ae8421a541afd2f453052f9ce9e48e8671 /drivers/iommu/iommu.c | |
parent | b70bb984489363aadd5ccc94d919629d9e264d36 (diff) | |
download | linux-07b48ac4bbe527e68cfc555f2b2b206908437141.tar.xz |
iommu/dma: Restore scatterlist offsets correctly
With the change to stashing just the IOVA-page-aligned remainder of the
CPU-page offset rather than the whole thing, the failure path in
__invalidate_sg() also needs tweaking to account for that in the case of
differing page sizes where the two offsets may not be equivalent.
Similarly in __finalise_sg(), lest the architecture-specific wrappers
later get the wrong address for cache maintenance on sync or unmap.
Fixes: 164afb1d85b8 ("iommu/dma: Use correct offset in map_sg")
Reported-by: Magnus Damm <damm+renesas@opensource.se>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Cc: stable@ver.kernel.org # v4.4+
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/iommu.c')
0 files changed, 0 insertions, 0 deletions