diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-06-16 07:54:22 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-06-17 09:35:08 +0200 |
commit | 6c94711cbdf595766bc3295e437c3579943cd846 (patch) | |
tree | b718b155bf880275c71ee5a2d4525f7468f3a566 /drivers/crypto/caam/caamalg.c | |
parent | crypto: nx - Convert GCM to new AEAD interface (diff) | |
download | linux-6c94711cbdf595766bc3295e437c3579943cd846.tar.xz linux-6c94711cbdf595766bc3295e437c3579943cd846.zip |
crypto: caam - Handle errors in dma_map_sg_chained
Currently dma_map_sg_chained does not handle errors from the
underlying dma_map_sg calls. This patch adds rollback in case
of an error by simply calling dma_unmap_sg_chained for the ones
that we've already mapped.
All current callers ignore the return value so this should have
no impact on them.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions