diff options
author | Horia Geantă <horia.geanta@nxp.com> | 2016-11-09 10:46:20 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-11-13 17:45:13 +0800 |
commit | c73e36e82b2394b1e199cb975485444cf05ed662 (patch) | |
tree | ef9e5f17023838e99cfeff09595437f6c10aff66 /drivers/crypto/caam/caamrng.c | |
parent | 9305dff7ab8b5e1aef2c4c5c733ce7e1dc345433 (diff) | |
download | talos-obmc-linux-c73e36e82b2394b1e199cb975485444cf05ed662.tar.gz talos-obmc-linux-c73e36e82b2394b1e199cb975485444cf05ed662.zip |
crypto: caam - fix DMA API mapping leak in ablkcipher code
alkcipher_edesc_alloc() and ablkcipher_giv_edesc_alloc() don't
free / unmap resources on error path:
- dmap_map_sg() could fail, thus make sure the return value is checked
- unmap DMA mappings in case of error
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/caam/caamrng.c')
0 files changed, 0 insertions, 0 deletions