Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp353228pxj; Fri, 11 Jun 2021 00:26:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpji+vEBsJyYGqrUqid1u3zsb+C1LcdAPx3uBvIcuxaefKDZrI/xAATioS4XVsdB8w6abP X-Received: by 2002:aa7:dd8d:: with SMTP id g13mr2374236edv.30.1623396394415; Fri, 11 Jun 2021 00:26:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623396394; cv=none; d=google.com; s=arc-20160816; b=jsCZ3x1I3D6n7uP6/r++/6oH5/jeLAvSPtWhIKPNbNhN+ftpNkTzoOo34WyBN1BnsE SJ2vZU5007IWiInzvuqeCIOiogI6/KHKulKPHusQ/k4n6d+BXwz/Lt1JVGi/rCwrsp3b oZ/zfLg+I9UlV+nwdmdIDvI6kXIY0wMyVgJ1zCGJPE+KEQm6mia4VqLi68WBsBMLnTvq TFZQh1a6lC1TyLVt5lV+ogJMCTHoGtm/h+df/GpdawSgP1LjvV7LS165x2g/ma5xi2U/ nBlbJn4dHqiE8PkI24ENy6PToJhQFIg2GFrxKCDGn1w0xGXMzdts5YbtQ0ZzTkRFxU+Y 4aSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=P9Ycx3+mqM5myn3VEE4+sno4fVYL5+RZPzJnoZVT9zY=; b=iwU2uFb1OVzD+x97LnEdqJE1AEgyUZi4KzwLHGpxDSDxrK1eiWzHDYT+T7EGCAfkBD 3T8qzTOrpS26bNSD9QNoIrP7NVTHwrlRrf31uOif5YPIohShLcGv3yQxWm0UoDhHxEOy E2wmCpCI/taQfktkvW0FdEloj62yFimZU3Lm+sKjPO0CN/Fa6436Wd8SdzwF7x7CiBQk iBb8/EzBM6aF0grkTYBsrbDC7gZ4/ug3DLaBFx5HtoKLuRZp0Rar0zVquBxgqJypOfBc pQQR3Qnk/dPK7VV2Pk5KrEyPMkx4aoyd4VsjoFBtEU569AhTl8Vwae3UgzvryySDZI37 2ChQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yd1si1870318ejb.258.2021.06.11.00.26.11; Fri, 11 Jun 2021 00:26:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231132AbhFKH0K (ORCPT + 99 others); Fri, 11 Jun 2021 03:26:10 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:50562 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229540AbhFKH0J (ORCPT ); Fri, 11 Jun 2021 03:26:09 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtp (Exim 4.92 #5 (Debian)) id 1lrbWO-0005Ol-Qc; Fri, 11 Jun 2021 15:24:04 +0800 Received: from herbert by gondobar with local (Exim 4.92) (envelope-from ) id 1lrbWK-0002Nk-41; Fri, 11 Jun 2021 15:24:00 +0800 Date: Fri, 11 Jun 2021 15:24:00 +0800 From: Herbert Xu To: Christophe JAILLET Cc: davem@davemloft.net, gregkh@linuxfoundation.org, acostag.ubuntu@gmail.com, lee.jones@linaro.org, Jampala.Srikanth@cavium.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] crypto: cavium/nitrox - Fix an erro rhandling path in 'nitrox_probe()' Message-ID: <20210611072400.GH23016@gondor.apana.org.au> References: <26f71d3925541924bfda1dca9114a48db5ffafe4.1622897629.git.christophe.jaillet@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <26f71d3925541924bfda1dca9114a48db5ffafe4.1622897629.git.christophe.jaillet@wanadoo.fr> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 05, 2021 at 02:55:56PM +0200, Christophe JAILLET wrote: > If an error occurs after a successful 'ioremap()' call, it must be undone > by a corresponding 'iounmap()' call, as already done in the remove > function. > Ass a 'pf_sw_fail' label in the error handling path and add the missing > 'iounmap()'. > > While at it, also add a 'flr_fail' label in the error handling path and use > it to avoid some code duplication. > > Fixes: 14fa93cdcd9b ("crypto: cavium - Add support for CNN55XX adapters.") > Signed-off-by: Christophe JAILLET > --- > drivers/crypto/cavium/nitrox/nitrox_main.c | 17 ++++++++--------- > 1 file changed, 8 insertions(+), 9 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt