[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20191108151127.uysbqg2yt2ovscfa@gondor.apana.org.au>
Date: Fri, 8 Nov 2019 23:11:27 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Colin King <colin.king@...onical.com>
Cc: Corentin Labbe <clabbe@...libre.com>,
"David S . Miller" <davem@...emloft.net>,
Neil Armstrong <narmstrong@...libre.com>,
linux-crypto@...r.kernel.org, kernel-janitors@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next] crypto: amlogic: ensure error variable err is set
before returning it
On Tue, Oct 29, 2019 at 11:32:30AM +0000, Colin King wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> Currently when the call to crypto_engine_alloc_init fails the error
> return path returns an uninitialized value in the variable err. Fix
> this by setting err to -ENOMEM.
>
> Addresses-Coverity: ("Uninitialized scalar variable")
> Fixes: 48fe583fe541 ("crypto: amlogic - Add crypto accelerator for amlogic GXL")
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
> ---
> drivers/crypto/amlogic/amlogic-gxl-core.c | 1 +
> 1 file changed, 1 insertion(+)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists