diff options
author | Christoph Hellwig <hch@lst.de> | 2020-10-23 09:33:09 +0300 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2020-11-02 18:10:39 +0300 |
commit | fc0021aa340af65a0a37d77be39e22aa886a6132 (patch) | |
tree | bd61ef7411ff4461f8b540a7542d4f5b1e388094 /drivers/pnp | |
parent | e9696d259d0fb5d239e8c28ca41089838ea76d13 (diff) | |
download | linux-fc0021aa340af65a0a37d77be39e22aa886a6132.tar.xz |
swiotlb: remove the tbl_dma_addr argument to swiotlb_tbl_map_single
The tbl_dma_addr argument is used to check the DMA boundary for the
allocations, and thus needs to be a dma_addr_t. swiotlb-xen instead
passed a physical address, which could lead to incorrect results for
strange offsets. Fix this by removing the parameter entirely and hard
code the DMA address for io_tlb_start instead.
Fixes: 91ffe4ad534a ("swiotlb-xen: introduce phys_to_dma/dma_to_phys translations")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/pnp')
0 files changed, 0 insertions, 0 deletions