summaryrefslogtreecommitdiff
path: root/crypto/ecc.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2017-11-10 00:25:43 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-19 09:09:51 +0100
commit4fc44467b7d4f8a6a8219abe40dc92ac39555239 (patch)
treeb51a2d2a1d72c747db5fc08a5619cc05073cdff9 /crypto/ecc.c
parentfc82675c04f8ce18ebba73fb0c48dd5d98ada5e5 (diff)
crypto: chelsio - Fix an error code in chcr_hash_dma_map()
[ Upstream commit 7814f552ff826fefa5e1b24083c7a06a9378e9ef ] 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> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/ecc.c')
0 files changed, 0 insertions, 0 deletions