]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: return error code from .map_sg() ops
authorMartin Oliveira <martin.oliveira@eideticom.com>
Thu, 29 Jul 2021 20:15:34 +0000 (14:15 -0600)
committerChristoph Hellwig <hch@lst.de>
Mon, 9 Aug 2021 15:13:06 +0000 (17:13 +0200)
commitc757623531f1d70e023f5832daa246d53c0f2d12
tree6353486bd8144a7bfe02820e5ce3b1db73f606f9
parentfc25b4d4c9d16fc53ebeb3db0707f4e54e2408d2
parisc: return error code from .map_sg() ops

The .map_sg() op now expects an error code instead of zero on failure.
Return -EINVAL if the ioc cannot be obtained.

Signed-off-by: Martin Oliveira <martin.oliveira@eideticom.com>
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
Cc: Helge Deller <deller@gmx.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/parisc/ccio-dma.c
drivers/parisc/sba_iommu.c