Skip to content
Commit 6c94711c authored by Herbert Xu's avatar Herbert Xu
Browse files

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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 201f28f0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment