[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZzAux5qbAiGo9GTS@gondor.apana.org.au>
Date: Sun, 10 Nov 2024 11:55:51 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Li Huafei <lihuafei1@...wei.com>
Cc: pliem@...linear.com, atenart@...nel.org, davem@...emloft.net,
linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] crypto: inside-secure - Fix the return value of
safexcel_xcbcmac_cra_init()
On Thu, Oct 31, 2024 at 07:27:55PM +0800, Li Huafei wrote:
> The commit 320406cb60b6 ("crypto: inside-secure - Replace generic aes
> with libaes") replaced crypto_alloc_cipher() with kmalloc(), but did not
> modify the handling of the return value. When kmalloc() returns NULL,
> PTR_ERR_OR_ZERO(NULL) returns 0, but in fact, the memory allocation has
> failed, and -ENOMEM should be returned.
>
> Fixes: 320406cb60b6 ("crypto: inside-secure - Replace generic aes with libaes")
> Signed-off-by: Li Huafei <lihuafei1@...wei.com>
> ---
> drivers/crypto/inside-secure/safexcel_hash.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
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