Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752104AbaKFPN0 (ORCPT ); Thu, 6 Nov 2014 10:13:26 -0500 Received: from helcar.apana.org.au ([209.40.204.226]:56956 "EHLO helcar.apana.org.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750915AbaKFPNR (ORCPT ); Thu, 6 Nov 2014 10:13:17 -0500 Date: Thu, 6 Nov 2014 23:13:08 +0800 From: Herbert Xu To: Cristian Stoica Cc: linux-crypto@vger.kernel.org, davem@davemloft.net, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] crypto: caam: fix missing dma unmap on error path Message-ID: <20141106151308.GA4446@gondor.apana.org.au> References: <1414672822-5067-1-git-send-email-cristian.stoica@freescale.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1414672822-5067-1-git-send-email-cristian.stoica@freescale.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: # 3.13+ > Signed-off-by: Cristian Stoica Patch applied to crypto. Thanks, -- Email: Herbert Xu 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/