From: Cristian Stoica Date: Thu, 30 Oct 2014 12:40:22 +0000 (+0200) Subject: crypto: caam - fix missing dma unmap on error path X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~129^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=738459e3f88538f2ece263424dafe5d91799e46b;p=pandora-kernel.git 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: # 3.13+ Signed-off-by: Cristian Stoica Signed-off-by: Herbert Xu --- Reading git-diff-tree failed