Re: [PATCH] crypto: sa2ul: stop probe if context pool creation fails
From: Herbert Xu
Date: Sun Jul 05 2026 - 04:34:23 EST
On Tue, Jun 16, 2026 at 08:46:27AM +0800, Pengpeng Hou wrote:
> sa_ul_probe() calls sa_init_mem() to create the DMA pool used for
> security context buffers, but ignores its return value. If pool creation
> fails, probe still continues with DMA setup, algorithm registration and
> child population even though later request setup depends on that pool.
>
> Stop probing when sa_init_mem() fails, and route that failure to the PM
> cleanup path without attempting to destroy an uncreated DMA pool.
>
> Signed-off-by: Pengpeng Hou <pengpeng@xxxxxxxxxxx>
> ---
> drivers/crypto/sa2ul.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt