From: =?UTF-8?Q?Horia_Geant=c4=83?= Subject: Re: [PATCH RFC 06/11] crypto: caam: ensure that we clean up after an error Date: Wed, 9 Dec 2015 17:08:41 +0200 Message-ID: <566843F9.6000508@freescale.com> References: <20151207191134.GV8644@n2100.arm.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: "David S. Miller" , To: Russell King , Fabio Estevam , Herbert Xu Return-path: Received: from mail-bn1bn0105.outbound.protection.outlook.com ([157.56.110.105]:19071 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750790AbbLIPIu (ORCPT ); Wed, 9 Dec 2015 10:08:50 -0500 In-Reply-To: Sender: linux-crypto-owner@vger.kernel.org List-ID: On 12/7/2015 9:12 PM, Russell King wrote: > Ensure that we clean up allocations and DMA mappings after encountering > an error rather than just giving up and leaking memory and resources. > > Signed-off-by: Russell King I guess the error cleanup code should be grouped under an "err" label, instead of duplicating it. Horia