summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/intel-iommu.c
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2019-12-11 19:33:26 +0100
committerJoerg Roedel <jroedel@suse.de>2019-12-17 11:17:28 +0100
commitbd036d2fdd374fa252abfc221e1a1280eee42f89 (patch)
tree6fc50ea3610030c64a4dac9139981c3c0b1e9f81 /drivers/iommu/intel-iommu.c
parentiommu/iova: Init the struct iova to fix the possible memleak (diff)
downloadlinux-bd036d2fdd374fa252abfc221e1a1280eee42f89.tar.xz
linux-bd036d2fdd374fa252abfc221e1a1280eee42f89.zip
iommu/dma: Rationalise types for DMA masks
Since iommu_dma_alloc_iova() combines incoming masks with the u64 bus limit, it makes more sense to pass them around in their native u64 rather than converting to dma_addr_t early. Do that, and resolve the remaining type discrepancy against the domain geometry with a cheeky cast to keep things simple. Signed-off-by: Robin Murphy <robin.murphy@arm.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Tested-by: Nathan Chancellor <natechancellor@gmail.com> # build Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/intel-iommu.c')
0 files changed, 0 insertions, 0 deletions