]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
iommu: return full error code from iommu_map_sg[_atomic]()
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 29 Jul 2021 20:15:21 +0000 (14:15 -0600)
committerChristoph Hellwig <hch@lst.de>
Mon, 9 Aug 2021 15:13:04 +0000 (17:13 +0200)
commitad8f36e4b6b1c826a0daa5fda2c5839205b5aa8b
tree103f7a59b05f9a574f088317222e88ee2dedda1a
parentc81be74e7d790f090d3c8a52e20a334dc2506a3f
iommu: return full error code from iommu_map_sg[_atomic]()

Convert to ssize_t return code so the return code from __iommu_map()
can be returned all the way down through dma_iommu_map_sg().

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/iommu/iommu.c
include/linux/iommu.h