]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sparc/iommu: don't set failed sg dma_address to DMA_MAPPING_ERROR
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 29 Jul 2021 20:15:33 +0000 (14:15 -0600)
committerChristoph Hellwig <hch@lst.de>
Mon, 9 Aug 2021 15:13:06 +0000 (17:13 +0200)
commitba3a0482db879f33863348b81ed9770888d727a9
tree83756f3e36c7b97cfdef1a1aec7c163d40fa1b57
parente02373fddb0ea86ce3962bb5d38e20ea0b6c8a05
sparc/iommu: don't set failed sg dma_address to DMA_MAPPING_ERROR

Setting the ->dma_address to DMA_MAPPING_ERROR is not part of
the ->map_sg calling convention, so remove it.

Link: https://lore.kernel.org/linux-mips/20210716063241.GC13345@lst.de/
Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Niklas Schnelle <schnelle@linux.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Christoph Hellwig <hch@lst.de>
arch/sparc/kernel/iommu.c
arch/sparc/kernel/pci_sun4v.c