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

From: Herbert Xu
Date: Thu Nov 06 2014 - 10:13:30 EST


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: <stable@xxxxxxxxxxxxxxx> # 3.13+
> Signed-off-by: Cristian Stoica <cristian.stoica@xxxxxxxxxxxxx>

Patch applied to crypto.

Thanks,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/