commit | 7814f552ff826fefa5e1b24083c7a06a9378e9ef | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Fri Nov 10 00:25:43 2017 +0300 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Wed Nov 29 16:43:49 2017 +1100 |
tree | 4aeecba13ef4420b0a5fe7684ea38c6abbce9396 | |
parent | d7fc6cfdf1efaafbd708c08f0be44d71bb9f7fde [diff] |
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>