From: Herbert Xu Subject: Re: [PATCH] crypto: atmel: fix checks of error code returned by devm_ioremap_resource() Date: Fri, 11 Mar 2016 21:31:47 +0800 Message-ID: <20160311133147.GD24332@gondor.apana.org.au> References: <1457227312-3190-1-git-send-email-vz@mleia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "David S. Miller" , Cyrille Pitchen , LABBE Corentin , linux-crypto@vger.kernel.org To: Vladimir Zapolskiy Return-path: Received: from helcar.hengli.com.au ([209.40.204.226]:47327 "EHLO helcar.hengli.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932148AbcCKNb4 (ORCPT ); Fri, 11 Mar 2016 08:31:56 -0500 Content-Disposition: inline In-Reply-To: <1457227312-3190-1-git-send-email-vz@mleia.com> Sender: linux-crypto-owner@vger.kernel.org List-ID: On Sun, Mar 06, 2016 at 03:21:52AM +0200, Vladimir Zapolskiy wrote: > The change fixes potential oops while accessing iomem on invalid > address, if devm_ioremap_resource() fails due to some reason. > > The devm_ioremap_resource() function returns ERR_PTR() and never > returns NULL, which makes useless a following check for NULL. > > Signed-off-by: Vladimir Zapolskiy > Fixes: b0e8b3417a62 ("crypto: atmel - use devm_xxx() managed function") Applied. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt