]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: caam - fix missing dma unmap on error path
authorCristian Stoica <cristian.stoica@freescale.com>
Thu, 30 Oct 2014 12:40:22 +0000 (14:40 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 6 Nov 2014 15:10:20 +0000 (23:10 +0800)
commit3607b378615f045937732d228341c8637077a289
treed7c7e94e6ee5aa7b5e396454708ed3f1b3210439
parent2c43facc157629a501837f7ac7b4526011bc5ca3
crypto: caam - fix missing dma unmap on error path

If dma mapping for dma_addr_out fails, the descriptor memory is freed
but the previous dma mapping for dma_addr_in remains.
This patch resolves the missing dma unmap and groups resource
allocations at function start.

Cc: <stable@vger.kernel.org> # 3.13+
Signed-off-by: Cristian Stoica <cristian.stoica@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/key_gen.c