]> git.baikalelectronics.ru Git - kernel.git/commit
dma-mapping: disallow .map_sg operations from returning zero on error
authorLogan Gunthorpe <logang@deltatee.com>
Mon, 9 Aug 2021 15:13:31 +0000 (17:13 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 9 Aug 2021 15:15:02 +0000 (17:15 +0200)
commitb82e3f2a4b9741f1e73f1bdece3b3b6b3b2a50a2
tree01226f9a07092a6c4d83ecf6e6adf594c595bafa
parent8fc56cb884c7bc6923cf1ca9ed0d2d71f309cbc9
dma-mapping: disallow .map_sg operations from returning zero on error

Now that all the .map_sg operations have been converted to returning
proper error codes, drop the code to handle a zero return value,
add a warning if a zero is returned.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
kernel/dma/mapping.c