Re: [PATCH] crypto: omap-des: fix crypto engine cleanup

From: Herbert Xu

Date: Fri Sep 18 2026 - 06:04:23 EST


On Sat, Sep 12, 2026 at 10:41:16PM +0800, Guangshuo Li wrote:
> omap_des_probe() allocates and starts a crypto engine, but the remove
> path does not call the matching crypto_engine_exit(). The probe failure
> path already performs this cleanup.
>
> crypto_engine_alloc_init() creates a kthread worker for processing
> requests. Without crypto_engine_exit() during driver removal, the
> worker is left running after the device is removed.
>
> Call crypto_engine_exit() after unregistering the algorithms and before
> tearing down the remaining request handling resources. This stops the
> engine and destroys its worker.
>
> This issue was found by manual code inspection.
>
> Fixes: f1b77aaca85a ("crypto: omap-des - Integrate with the crypto engine framework")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Guangshuo Li <lgs201920130244@xxxxxxxxx>
> ---
> drivers/crypto/omap-des.c | 2 ++
> 1 file changed, 2 insertions(+)

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