[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Zdk9vc7OPEPcXA1/@gondor.apana.org.au>
Date: Sat, 24 Feb 2024 08:52:13 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Kilian Zinnecker <kilian.zinnecker@...l.de>
Cc: Corentin Labbe <clabbe@...libre.com>,
"David S . Miller" <davem@...emloft.net>,
Heiko Stuebner <heiko@...ech.de>, linux-crypto@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-rockchip@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] crypto: rockchip - fix to check return value
On Sun, Feb 18, 2024 at 11:16:58PM +0100, Kilian Zinnecker wrote:
> crypto_engine_alloc_init may fail, e.g., as result of a fail of
> devm_kzalloc or kthread_create_worker. Other drivers (e.g.,
> amlogic-gxl-core.c, aspeed-acry.c, aspeed-hace.c, jr.c, etc.) check
> crypto_engine_alloc_init's return value and return -ENOMEM in case
> a NULL pointer is returned. This patch inserts a corresponding
> return value check to rk3288_crypto.c.
>
> Signed-off-by: Kilian Zinnecker <kilian.zinnecker@...l.de>
> ---
> drivers/crypto/rockchip/rk3288_crypto.c | 5 +++++
> 1 file changed, 5 insertions(+)
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