Re: [PATCH] crypto: caam: fix missing dma unmap on error path

2014-11-06 Thread Herbert Xu
On Thu, Oct 30, 2014 at 02:40:22PM +0200, Cristian Stoica wrote: > 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:

[PATCH] crypto: caam: fix missing dma unmap on error path

2014-10-30 Thread Cristian Stoica
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: # 3.13+ Signed-off-by: Cristian Stoica --- drivers/crypto/caam/key_gen.c |