Searched hist:"7814 f552" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/crypto/chelsio/ |
H A D | chcr_algo.c | 7814f552 Thu Nov 09 15:25:43 CST 2017 Dan Carpenter <dan.carpenter@oracle.com> crypto: chelsio - Fix an error code in chcr_hash_dma_map()
The dma_map_sg() function returns zero on error and positive values on success. We want to return -ENOMEM on failure here and zero on success.
Fixes: 2f47d5804311 ("crypto: chelsio - Move DMA un/mapping to chcr from lld cxgb4 driver") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> 7814f552 Thu Nov 09 15:25:43 CST 2017 Dan Carpenter <dan.carpenter@oracle.com> crypto: chelsio - Fix an error code in chcr_hash_dma_map() The dma_map_sg() function returns zero on error and positive values on success. We want to return -ENOMEM on failure here and zero on success. Fixes: 2f47d5804311 ("crypto: chelsio - Move DMA un/mapping to chcr from lld cxgb4 driver") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
|